src: use non-deprecated v8::Uint8Array::kMaxLength #1111
Annotations
3 errors
test-asan:
test/parallel/test-blob-buffer-too-large.js#L1
--- stderr ---
=================================================================
==94223==ERROR: AddressSanitizer: requested allocation size 0x1fffffffffffff (0x20000000001000 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0)
#0 0xe71752 in calloc (/home/runner/work/node-v8/node-v8/out/Release/node+0xe71752)
#1 0xeb2374 in node::NodeArrayBufferAllocator::Allocate(unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0xeb2374)
#2 0x1e367be in v8::internal::Heap::AllocateExternalBackingStore(std::function<void* (unsigned long)> const&, unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0x1e367be)
#3 0x21d51a5 in v8::internal::BackingStore::Allocate(v8::internal::Isolate*, unsigned long, v8::internal::SharedFlag, v8::internal::InitializedFlag) (/home/runner/work/node-v8/node-v8/out/Release/node+0x21d51a5)
#4 0x1989ea9 in v8::internal::(anonymous namespace)::ConstructBuffer(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSFunction>, v8::internal::Handle<v8::internal::JSReceiver>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::InitializedFlag) (/home/runner/work/node-v8/node-v8/out/Release/node+0x1989ea9)
#5 0x1988436 in v8::internal::Builtin_ArrayBufferConstructor(int, unsigned long*, v8::internal::Isolate*) (/home/runner/work/node-v8/node-v8/out/Release/node+0x1988436)
#6 0x7f60a8663c75 in v8::internal::wasm::WasmEngine::GetOrCreateScript(v8::internal::Isolate*, std::shared_ptr<v8::internal::wasm::NativeModule> const&, v8::base::Vector<char const>) (/home/runner/work/node-v8/node-v8/out/Release/node+0x334dc75)
#7 0x7f60a85c9d4e in v8::internal::wasm::TurboshaftGraphBuildingInterface::ArrayCopy(v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::FullValidationTag, v8::internal::wasm::TurboshaftGraphBuildingInterface, (v8::internal::wasm::DecodingMode)0>*, v8::internal::wasm::TurboshaftGraphBuildingInterface::Value const&, v8::internal::wasm::TurboshaftGraphBuildingInterface::Value const&, v8::internal::wasm::TurboshaftGraphBuildingInterface::Value const&, v8::internal::wasm::TurboshaftGraphBuildingInterface::Value const&, v8::internal::wasm::ArrayIndexImmediate const&, v8::internal::wasm::TurboshaftGraphBuildingInterface::Value const&) (/home/runner/work/node-v8/node-v8/out/Release/node+0x32b3d4e)
#8 0x7f60a8715ed0 in v8::internal::wasm::DeserializeCodeTask::Run(v8::JobDelegate*) (/home/runner/work/node-v8/node-v8/out/Release/node+0x33ffed0)
#9 0x7f60a8651bfa in void std::vector<v8::internal::wasm::MultiLineStringBuilder::Line, std::allocator<v8::internal::wasm::MultiLineStringBuilder::Line> >::_M_realloc_insert<char const*, unsigned long&, unsigned int&>(__gnu_cxx::__normal_iterator<v8::internal::wasm::MultiLineStringBuilder::Line*, std::vector<v8::internal::wasm::MultiLineStringBuilder::Line, std::allocator<v8::internal::wasm::MultiLineStringBuilder::Line> > >, char const*&&, unsigned long&, unsigned int&) (/home/runner/work/node-v8/node-v8/out/Release/node+0x333bbfa)
#10 0x7f60a85cd7fb in v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::FullValidationTag, v8::internal::wasm::TurboshaftGraphBuildingInterface, (v8::internal::wasm::DecodingMode)0>::ParseBrOnCastFail(v8::internal::wasm::WasmOpcode, unsigned int, v8::internal::wasm::BrOnCastFlags) (/home/runner/work/node-v8/node-v8/out/Release/node+0x32b77fb)
#11 0x7f60a87527e2 in v8::internal::Assembler::emit_not(v8::internal::Operand, int) (/home/runner/work/node-v8/node-v8/out/Release/node+0x343c7e2)
#12 0x7f60a85ccd9d in v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::FullValidationTag, v8::internal::wasm::TurboshaftGraphBuildingInterface, (v8::internal::wasm::DecodingMode)0>::ParseBrOnCast(v8::internal::wasm::WasmOpcode, unsigned int, v8::internal::wasm::BrOnCastFlags) (/home/runner/work/node-v8/node-v8/out/Release/node+0x32b6d9d)
#13 0x7f60a85ccd9d in v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::Ful
|
test-asan:
test/parallel/test-buffer-slow.js#L1
--- stderr ---
=================================================================
==95073==ERROR: AddressSanitizer: requested allocation size 0x1fffffffffffff (0x20000000001000 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0)
#0 0xe715dd in malloc (/home/runner/work/node-v8/node-v8/out/Release/node+0xe715dd)
#1 0xeb23dd in node::NodeArrayBufferAllocator::Allocate(unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0xeb23dd)
#2 0x1e367be in v8::internal::Heap::AllocateExternalBackingStore(std::function<void* (unsigned long)> const&, unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0x1e367be)
#3 0x21d51a5 in v8::internal::BackingStore::Allocate(v8::internal::Isolate*, unsigned long, v8::internal::SharedFlag, v8::internal::InitializedFlag) (/home/runner/work/node-v8/node-v8/out/Release/node+0x21d51a5)
#4 0x1989ea9 in v8::internal::(anonymous namespace)::ConstructBuffer(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSFunction>, v8::internal::Handle<v8::internal::JSReceiver>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::InitializedFlag) (/home/runner/work/node-v8/node-v8/out/Release/node+0x1989ea9)
#5 0x1988436 in v8::internal::Builtin_ArrayBufferConstructor(int, unsigned long*, v8::internal::Isolate*) (/home/runner/work/node-v8/node-v8/out/Release/node+0x1988436)
#6 0x7fae8bf63c75 in v8::internal::wasm::WasmEngine::GetOrCreateScript(v8::internal::Isolate*, std::shared_ptr<v8::internal::wasm::NativeModule> const&, v8::base::Vector<char const>) (/home/runner/work/node-v8/node-v8/out/Release/node+0x334dc75)
#7 0x7fae8bec9d4e in v8::internal::wasm::TurboshaftGraphBuildingInterface::ArrayCopy(v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::FullValidationTag, v8::internal::wasm::TurboshaftGraphBuildingInterface, (v8::internal::wasm::DecodingMode)0>*, v8::internal::wasm::TurboshaftGraphBuildingInterface::Value const&, v8::internal::wasm::TurboshaftGraphBuildingInterface::Value const&, v8::internal::wasm::TurboshaftGraphBuildingInterface::Value const&, v8::internal::wasm::TurboshaftGraphBuildingInterface::Value const&, v8::internal::wasm::ArrayIndexImmediate const&, v8::internal::wasm::TurboshaftGraphBuildingInterface::Value const&) (/home/runner/work/node-v8/node-v8/out/Release/node+0x32b3d4e)
#8 0x7fae8c015ed0 in v8::internal::wasm::DeserializeCodeTask::Run(v8::JobDelegate*) (/home/runner/work/node-v8/node-v8/out/Release/node+0x33ffed0)
#9 0x7fae8bf51bfa in void std::vector<v8::internal::wasm::MultiLineStringBuilder::Line, std::allocator<v8::internal::wasm::MultiLineStringBuilder::Line> >::_M_realloc_insert<char const*, unsigned long&, unsigned int&>(__gnu_cxx::__normal_iterator<v8::internal::wasm::MultiLineStringBuilder::Line*, std::vector<v8::internal::wasm::MultiLineStringBuilder::Line, std::allocator<v8::internal::wasm::MultiLineStringBuilder::Line> > >, char const*&&, unsigned long&, unsigned int&) (/home/runner/work/node-v8/node-v8/out/Release/node+0x333bbfa)
#10 0x7fae8becd7fb in v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::FullValidationTag, v8::internal::wasm::TurboshaftGraphBuildingInterface, (v8::internal::wasm::DecodingMode)0>::ParseBrOnCastFail(v8::internal::wasm::WasmOpcode, unsigned int, v8::internal::wasm::BrOnCastFlags) (/home/runner/work/node-v8/node-v8/out/Release/node+0x32b77fb)
#11 0x7fae8c0527e2 in v8::internal::Assembler::emit_not(v8::internal::Operand, int) (/home/runner/work/node-v8/node-v8/out/Release/node+0x343c7e2)
#12 0x7fae8beccd9d in v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::FullValidationTag, v8::internal::wasm::TurboshaftGraphBuildingInterface, (v8::internal::wasm::DecodingMode)0>::ParseBrOnCast(v8::internal::wasm::WasmOpcode, unsigned int, v8::internal::wasm::BrOnCastFlags) (/home/runner/work/node-v8/node-v8/out/Release/node+0x32b6d9d)
#13 0x7fae8becd6f0 in v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::Ful
|
test-asan
Process completed with exit code 2.
|