src: use non-deprecated v8::Uint8Array::kMaxLength #1128
Annotations
3 errors
test-asan:
test/parallel/test-blob-buffer-too-large.js#L1
--- stderr ---
=================================================================
==94931==ERROR: AddressSanitizer: requested allocation size 0x1fffffffffffff (0x20000000001000 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0)
#0 0xe9f492 in calloc (/home/runner/work/node-v8/node-v8/out/Release/node+0xe9f492)
#1 0xee0374 in node::NodeArrayBufferAllocator::Allocate(unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0xee0374)
#2 0x1e8b3fe in v8::internal::Heap::AllocateExternalBackingStore(std::function<void* (unsigned long)> const&, unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0x1e8b3fe)
#3 0x2229d05 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+0x2229d05)
#4 0x19bc1b6 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+0x19bc1b6)
#5 0x19ba50a in v8::internal::Builtin_ArrayBufferConstructor(int, unsigned long*, v8::internal::Isolate*) (/home/runner/work/node-v8/node-v8/out/Release/node+0x19ba50a)
#6 0x7f1220963cb5 in v8::internal::wasm::WasmEngine::NewNativeModule(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures, std::shared_ptr<v8::internal::wasm::WasmModule const>, unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0x33c2cb5)
#7 0x7f12208c9d4e in std::tuple<bool, v8::internal::compiler::turboshaft::V<v8::internal::compiler::turboshaft::WordWithBits<32ul> >, v8::internal::compiler::turboshaft::V<v8::internal::compiler::turboshaft::WordWithBits<32ul> > > v8::internal::compiler::turboshaft::LoopLabel<v8::internal::compiler::turboshaft::WordWithBits<32ul>, v8::internal::compiler::turboshaft::WordWithBits<32ul> >::BindLoop<v8::internal::compiler::turboshaft::Assembler<v8::internal::compiler::turboshaft::reducer_list<v8::internal::compiler::turboshaft::SelectLoweringReducer, v8::internal::compiler::turboshaft::DataViewReducer, 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::DataViewReducer, v8::internal::compiler::turboshaft::VariableReducer, v8::internal::compiler::turboshaft::RequiredOptimizationReducer> >&) (/home/runner/work/node-v8/node-v8/out/Release/node+0x3328d4e)
#8 0x7f1220a16910 in v8::internal::Assembler::emit_sse_operand(v8::internal::XMMRegister, v8::internal::Operand) (/home/runner/work/node-v8/node-v8/out/Release/node+0x3475910)
#9 0x7f1220951b3a 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+0x33b0b3a)
#10 0x7f12208cd7fb 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+0x332c7fb)
#11 0x7f1220a54522 in v8::internal::Assembler::movdqu(v8::internal::XMMRegister, v8::internal::Operand) (/home/runner/work/node-v8/node-v8/out/Release/node+0x34b3522)
#12 0x7f12208ccd9d 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/no
|
test-asan:
test/parallel/test-buffer-slow.js#L1
--- stderr ---
=================================================================
==95785==ERROR: AddressSanitizer: requested allocation size 0x1fffffffffffff (0x20000000001000 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0)
#0 0xe9f31d in malloc (/home/runner/work/node-v8/node-v8/out/Release/node+0xe9f31d)
#1 0xee03dd in node::NodeArrayBufferAllocator::Allocate(unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0xee03dd)
#2 0x1e8b3fe in v8::internal::Heap::AllocateExternalBackingStore(std::function<void* (unsigned long)> const&, unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0x1e8b3fe)
#3 0x2229d05 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+0x2229d05)
#4 0x19bc1b6 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+0x19bc1b6)
#5 0x19ba50a in v8::internal::Builtin_ArrayBufferConstructor(int, unsigned long*, v8::internal::Isolate*) (/home/runner/work/node-v8/node-v8/out/Release/node+0x19ba50a)
#6 0x7f8b5d863cb5 in v8::internal::wasm::WasmEngine::NewNativeModule(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures, std::shared_ptr<v8::internal::wasm::WasmModule const>, unsigned long) (/home/runner/work/node-v8/node-v8/out/Release/node+0x33c2cb5)
#7 0x7f8b5d7c9d4e in std::tuple<bool, v8::internal::compiler::turboshaft::V<v8::internal::compiler::turboshaft::WordWithBits<32ul> >, v8::internal::compiler::turboshaft::V<v8::internal::compiler::turboshaft::WordWithBits<32ul> > > v8::internal::compiler::turboshaft::LoopLabel<v8::internal::compiler::turboshaft::WordWithBits<32ul>, v8::internal::compiler::turboshaft::WordWithBits<32ul> >::BindLoop<v8::internal::compiler::turboshaft::Assembler<v8::internal::compiler::turboshaft::reducer_list<v8::internal::compiler::turboshaft::SelectLoweringReducer, v8::internal::compiler::turboshaft::DataViewReducer, 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::DataViewReducer, v8::internal::compiler::turboshaft::VariableReducer, v8::internal::compiler::turboshaft::RequiredOptimizationReducer> >&) (/home/runner/work/node-v8/node-v8/out/Release/node+0x3328d4e)
#8 0x7f8b5d916910 in v8::internal::Assembler::emit_sse_operand(v8::internal::XMMRegister, v8::internal::Operand) (/home/runner/work/node-v8/node-v8/out/Release/node+0x3475910)
#9 0x7f8b5d851b3a 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+0x33b0b3a)
#10 0x7f8b5d7cd7fb 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+0x332c7fb)
#11 0x7f8b5d954522 in v8::internal::Assembler::movdqu(v8::internal::XMMRegister, v8::internal::Operand) (/home/runner/work/node-v8/node-v8/out/Release/node+0x34b3522)
#12 0x7f8b5d7ccd9d 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/no
|
test-asan
Process completed with exit code 2.
|