Skip to content

Conversation

@its-mr-monday
Copy link

@its-mr-monday its-mr-monday commented Jul 23, 2024

Credit to @Eponymous-One for finding the solution,

An issue was arising within the protocols.cc file where the following call within function nmap_getprotbynum:

//Line 194
assert(num >= 0 && num < UCHAR_MAX);

Was causing nmap to core dump
Resolving the issue by ensuring assert is checking it is actually hitting UCHAR_MAX and not 1 char short of UCHAR_MAX via:

assert(num >= 0 && num <= UCHAR_MAX);

@nnposter nnposter self-assigned this Aug 5, 2024
@nmap-bot nmap-bot closed this in efa0dc3 Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants