-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Closed
Copy link
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.netIssues and PRs related to the net subsystem.Issues and PRs related to the net subsystem.
Description
- Version: 15.4.0
- Platform: macOS 10.15.7
- Subsystem: net
What steps will reproduce the bug?
const net = require('net');
const blockList = new net.BlockList();
blockList.addSubnet('', NaN);
How often does it reproduce? Is there a required condition?
Everytime.
What is the expected behavior?
throw ERR_OUT_OF_RANGE
error.
What do you see instead?
> blockList.addSubnet('', NaN)
node[2155]: ../src/node_sockaddr.cc:614:static void node::SocketAddressBlockListWrap::AddSubnet(const FunctionCallbackInfo<v8::Value> &): Assertion `args[2]->IsInt32()' failed.
1: 0x101379d05 node::Abort() (.cold.1) [/usr/local/bin/node]
2: 0x1000bde89 node::Abort() [/usr/local/bin/node]
3: 0x1000bdcf1 node::Assert(node::AssertionInfo const&) [/usr/local/bin/node]
4: 0x1001420e4 node::SocketAddressBlockListWrap::AddSubnet(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/bin/node]
5: 0x1002a3728 v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/usr/local/bin/node]
6: 0x1002a2cbc v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/usr/local/bin/node]
7: 0x1002a23e7 v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/usr/local/bin/node]
8: 0x100ac42d9 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit [/usr/local/bin/node]
9: 0x100a5d402 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
[1] 2155 abort node
Additional information
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.netIssues and PRs related to the net subsystem.Issues and PRs related to the net subsystem.