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

Integer overflow 4527 v1 #6674

Closed
wants to merge 5 commits into from

Conversation

catenacyber
Copy link
Contributor

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/4527

Describe changes:

  • Fix integer warnings in all files beginning with a (like app)

libhtp-pr: 339

There remains one warning about the use of StreamTcpUpdateAppLayerProgress
cf discussion in #6649

@catenacyber catenacyber requested a review from a team as a code owner December 6, 2021 08:46
Explicitly truncate a file name if it is longer
than UINT16_MAX
@catenacyber catenacyber force-pushed the integer-overflow-4527-v1 branch from 426b267 to 166084b Compare December 6, 2021 13:04
Explicitly truncate file names to UINT16_MAX

Before, they got implicitly truncated, meaning a UINT16_MAX + 1
file name, went to 0 file name (because of modulo 65536)
and explicitly truncating filename's length
especially increasing padding_len size
@catenacyber catenacyber force-pushed the integer-overflow-4527-v1 branch from 166084b to 5e3f3c0 Compare December 6, 2021 13:04
@catenacyber
Copy link
Contributor Author

Replaced by #6676

@catenacyber catenacyber closed this Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant