-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a check to ensure that indexes into DirNames are in range. (#51)
The check above ensures that the lengths of these arrays are constrained, but does not ensure that the indexes themselves are within bounds. This leads to a panic when consuming malformed data. A similar check can be found at: https://github.com/rpm-software-management/rpm/blob/master/lib/tagexts.c#L99.
- Loading branch information
1 parent
4c52bf7
commit a8af76a
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.