-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scan] fix crashers when parsing comment (#1018)
* [scan] fix crashers when parsing comment When dealing with comments the parsers was potentially incrementing comi variable twice. During the second access to com[], comi was possibly longer than maxTok, causing an out of bound error: panic: runtime error: index out of range [2048] with length 2048 * * Keep only 1 crasher test string. * move tests from scan_test.go to fuzz_test.go
- Loading branch information
Showing
2 changed files
with
129 additions
and
0 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