src: use non-deprecated v8::Uint8Array::kMaxLength #1118
Annotations
3 errors
test-asan:
test/parallel/test-blob-buffer-too-large.js#L1
--- stderr ---
=================================================================
==94303==ERROR: AddressSanitizer: requested allocation size 0x1fffffffffffff (0x20000000001000 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0)
#0 0xe93912 in calloc (/home/runner/work/node-v8/node-v8/out/Release/node+0xe93912)
#1 0xed4374 in node::NodeArrayBufferAllocator::Allocate(unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0xed4374)
#2 0x1e7f38e in v8::internal::Heap::AllocateExternalBackingStore(std::function<void* (unsigned long)> const&, unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0x1e7f38e)
#3 0x221dfd5 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+0x221dfd5)
#4 0x19b1aa6 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+0x19b1aa6)
#5 0x19afdfa in v8::internal::Builtin_ArrayBufferConstructor(int, unsigned long*, v8::internal::Isolate*) (/home/runner/work/node-v8/node-v8/out/Release/node+0x19afdfa)
#6 0x7fc872063f75 in v8::internal::wasm::WasmEngine::MaybeGetNativeModule(v8::internal::wasm::ModuleOrigin, v8::base::Vector<unsigned char const>, v8::internal::Isolate*) (/home/runner/work/node-v8/node-v8/out/Release/node+0x33bcf75)
#7 0x7fc871fc9d4e in void v8::internal::compiler::turboshaft::LoopLabel<v8::internal::compiler::turboshaft::WordWithBits<32ul>, v8::internal::compiler::turboshaft::WordWithBits<32ul> >::EndLoop<v8::internal::compiler::turboshaft::Assembler<v8::internal::compiler::turboshaft::reducer_list<v8::internal::compiler::turboshaft::SelectLoweringReducer, v8::internal::compiler::turboshaft::MachineLoweringReducer, v8::internal::compiler::turboshaft::VariableReducer, v8::internal::compiler::turboshaft::RequiredOptimizationReducer> > >(v8::internal::compiler::turboshaft::Assembler<v8::internal::compiler::turboshaft::reducer_list<v8::internal::compiler::turboshaft::SelectLoweringReducer, v8::internal::compiler::turboshaft::MachineLoweringReducer, v8::internal::compiler::turboshaft::VariableReducer, v8::internal::compiler::turboshaft::RequiredOptimizationReducer> >&) (/home/runner/work/node-v8/node-v8/out/Release/node+0x3322d4e)
#8 0x7fc872117010 in void v8::internal::Assembler::vinstr<v8::internal::YMMRegister, v8::internal::XMMRegister, v8::internal::YMMRegister>(unsigned char, v8::internal::YMMRegister, v8::internal::XMMRegister, v8::internal::YMMRegister, v8::internal::Assembler::SIMDPrefix, v8::internal::Assembler::LeadingOpcode, v8::internal::Assembler::VexW, v8::internal::CpuFeature) (/home/runner/work/node-v8/node-v8/out/Release/node+0x3470010)
#9 0x7fc872051e7a in v8::internal::wasm::WasmEngine::SyncCompile(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures, v8::internal::wasm::ErrorThrower*, v8::internal::wasm::ModuleWireBytes) (/home/runner/work/node-v8/node-v8/out/Release/node+0x33aae7a)
#10 0x7fc871fcd7fb in v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::FullValidationTag, v8::internal::wasm::TurboshaftGraphBuildingInterface, (v8::internal::wasm::DecodingMode)0>::DecodeNumericOpcode(v8::internal::wasm::WasmOpcode, unsigned int) (/home/runner/work/node-v8/node-v8/out/Release/node+0x33267fb)
#11 0x7fc872154ca2 in v8::internal::Assembler::pextrq(v8::internal::Register, v8::internal::XMMRegister, signed char) (/home/runner/work/node-v8/node-v8/out/Release/node+0x34adca2)
#12 0x7fc871fccd9d in v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::FullValidationTag, v8::internal::wasm::TurboshaftGraphBuildingInterface, (v8::internal::wasm::DecodingMode)0>::DecodeNumericOpcode(v8::internal::wasm::Was
|
test-asan:
test/parallel/test-buffer-slow.js#L1
--- stderr ---
=================================================================
==95156==ERROR: AddressSanitizer: requested allocation size 0x1fffffffffffff (0x20000000001000 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0)
#0 0xe9379d in malloc (/home/runner/work/node-v8/node-v8/out/Release/node+0xe9379d)
#1 0xed43dd in node::NodeArrayBufferAllocator::Allocate(unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0xed43dd)
#2 0x1e7f38e in v8::internal::Heap::AllocateExternalBackingStore(std::function<void* (unsigned long)> const&, unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0x1e7f38e)
#3 0x221dfd5 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+0x221dfd5)
#4 0x19b1aa6 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+0x19b1aa6)
#5 0x19afdfa in v8::internal::Builtin_ArrayBufferConstructor(int, unsigned long*, v8::internal::Isolate*) (/home/runner/work/node-v8/node-v8/out/Release/node+0x19afdfa)
#6 0x7f8c91363f75 in v8::internal::wasm::WasmEngine::MaybeGetNativeModule(v8::internal::wasm::ModuleOrigin, v8::base::Vector<unsigned char const>, v8::internal::Isolate*) (/home/runner/work/node-v8/node-v8/out/Release/node+0x33bcf75)
#7 0x7f8c912c9d4e in void v8::internal::compiler::turboshaft::LoopLabel<v8::internal::compiler::turboshaft::WordWithBits<32ul>, v8::internal::compiler::turboshaft::WordWithBits<32ul> >::EndLoop<v8::internal::compiler::turboshaft::Assembler<v8::internal::compiler::turboshaft::reducer_list<v8::internal::compiler::turboshaft::SelectLoweringReducer, v8::internal::compiler::turboshaft::MachineLoweringReducer, v8::internal::compiler::turboshaft::VariableReducer, v8::internal::compiler::turboshaft::RequiredOptimizationReducer> > >(v8::internal::compiler::turboshaft::Assembler<v8::internal::compiler::turboshaft::reducer_list<v8::internal::compiler::turboshaft::SelectLoweringReducer, v8::internal::compiler::turboshaft::MachineLoweringReducer, v8::internal::compiler::turboshaft::VariableReducer, v8::internal::compiler::turboshaft::RequiredOptimizationReducer> >&) (/home/runner/work/node-v8/node-v8/out/Release/node+0x3322d4e)
#8 0x7f8c91417010 in void v8::internal::Assembler::vinstr<v8::internal::YMMRegister, v8::internal::XMMRegister, v8::internal::YMMRegister>(unsigned char, v8::internal::YMMRegister, v8::internal::XMMRegister, v8::internal::YMMRegister, v8::internal::Assembler::SIMDPrefix, v8::internal::Assembler::LeadingOpcode, v8::internal::Assembler::VexW, v8::internal::CpuFeature) (/home/runner/work/node-v8/node-v8/out/Release/node+0x3470010)
#9 0x7f8c91351e7a in v8::internal::wasm::WasmEngine::SyncCompile(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures, v8::internal::wasm::ErrorThrower*, v8::internal::wasm::ModuleWireBytes) (/home/runner/work/node-v8/node-v8/out/Release/node+0x33aae7a)
#10 0x7f8c912cd7fb in v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::FullValidationTag, v8::internal::wasm::TurboshaftGraphBuildingInterface, (v8::internal::wasm::DecodingMode)0>::DecodeNumericOpcode(v8::internal::wasm::WasmOpcode, unsigned int) (/home/runner/work/node-v8/node-v8/out/Release/node+0x33267fb)
#11 0x7f8c91454ca2 in v8::internal::Assembler::pextrq(v8::internal::Register, v8::internal::XMMRegister, signed char) (/home/runner/work/node-v8/node-v8/out/Release/node+0x34adca2)
#12 0x7f8c912ccd9d in v8::internal::wasm::WasmFullDecoder<v8::internal::wasm::Decoder::FullValidationTag, v8::internal::wasm::TurboshaftGraphBuildingInterface, (v8::internal::wasm::DecodingMode)0>::DecodeNumericOpcode(v8::internal::wasm::Was
|
test-asan
Process completed with exit code 2.
|