Skip to content

Fix for issue #2896 #2897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

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