Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a crash due to an out-of-bounds array access
entry_search had a "type confusion" bug where it would perform array accesses that bypassed bounds checks if given arguments that looked like strategies. I've rewritten most of the argument parsing loop in a way that should eliminate this issue, while being shorter and more straightforward (with less duplicated code), only requiring one pass through the arguments. The downside is that we allocate a bit more memory and have a couple of gotos to handle errors.
- Loading branch information
Showing
4 changed files
with
80 additions
and
101 deletions.
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
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