guhe120
guhe120
Hi, There is a stack overflow bug in json parser when parsing nesting objects. There is a function named check_string_depth to handle such situation, it tries to make sure the...
When translating an offset to wasm memory for a reference, the bounds check is as following: At wavm.hpp, line 585: if(!mem || ptr+sizeof(T) >= IR::numBytesPerPage*Runtime::getMemoryNumPages(mem)) Runtime::causeException(Exception::Cause::accessViolation); Here |ptr|'s type is...
Hi, In function array_ptr_impl in Binaryen.hpp: template inline array_ptr array_ptr_impl (interpreter_interface* interface, uint32_t ptr, uint32_t length) { return array_ptr((T*)(interface->get_validated_pointer(ptr, length * (uint32_t)sizeof(T)))); } Here we have full control of the...
In the function JavascriptArray::DirectSetItem_Full (JavaScriptArray.inl): //Find the segment where itemIndex is present or is at the boundary SparseArraySegment* current = (SparseArraySegment*)this->GetBeginLookupSegment(itemIndex, false); // If it doesn't fit in current chunk...