Skip to content
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

Minor bug fixes in netsniff #221

Closed
wants to merge 4 commits into from

Conversation

nathaniellives
Copy link
Contributor

Added a few checks and repaired a couple minor issues mostly relating to out of bound memory reads in the protocol reception and decode routines. This is PR with the modifications requested in the initial PR.

…ils the potential integer underflow of a signed integer.

Signed-off-by: Nathaniel Ferguson <nathaniel@leapfrog.foundation>
…l by adding return value checks. There are other inet_ntop() usages of similar however these are in a receive code path with user data for most of the variables

Signed-off-by: Nathaniel Ferguson <nathaniel@leapfrog.foundation>
…ter reading sizeof(uint16_t) and before reading another sizeof(uint16_t). In essence a potential out of bounds memory access (read) due to improper increment of pointer

Signed-off-by: Nathaniel Ferguson <nathaniel@leapfrog.foundation>
…revent accidental out of bounds memory access

Signed-off-by: Nathaniel Ferguson <nathaniel@leapfrog.foundation>
@tklauser
Copy link
Member

tklauser commented May 4, 2020

Thanks a lot! I slightly modified the commit messages (so each has a summary subject line), made some minor white space and coding style cleanups to the commits themselves and applied the commits individually.

@tklauser tklauser closed this May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants