Skip to content

Add bounds checks to the parsing utilities. - #5421

Merged
kimkulling merged 14 commits into
masterfrom
kimkulling/add_boundscheck_to_parsing_utils
Jan 30, 2024
Merged

kimkulling merged 14 commits into
masterfrom
kimkulling/add_boundscheck_to_parsing_utils

Conversation

@kimkulling

Copy link
Copy Markdown
Member

There are a lot of fuzzer findings caused by out-of-bounds-aceesses caused by the internal parsing utilities for strings and character buffer. In this pull-request, I have added an end check for each access to a string parser function.

I expect there will be many issues caused by bugs I have introduced. Please help me review this PR and fix it!

Thanks, Kim

@turol

turol commented Jan 17, 2024

Copy link
Copy Markdown
Member

Having one massive commit like this is very bad for both reviewability and history. Please split it up. First have one commit which adds the new aiBuffer type and then small commits which introduce it in the loaders one by one.

@kimkulling

Copy link
Copy Markdown
Member Author

Done!

@kimkulling kimkulling changed the title [Draft] Add bounds checks to the parsing utilities. Add bounds checks to the parsing utilities. Jan 30, 2024
@kimkulling
kimkulling merged commit c08e3b4 into master Jan 30, 2024
@kimkulling
kimkulling deleted the kimkulling/add_boundscheck_to_parsing_utils branch January 30, 2024 13:32
kimkulling added a commit that referenced this pull request Jul 1, 2026
* Add bounds checks to the parsing utilities.

* Fix merge conflicts in ACLoader.

* Fix loaders

* Fix unittest of AC-Loader.

* Remove dead code.

* Md5Parser fixes

* Fix md5-parsing

* Fix Merge conflict

* Fix merge conflicts.

* Md5: Fix warning: missing return statement.
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.

3 participants