forked from hercules-team/augeas
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fa_ambig_example() when the automata involve NULs
After the example for `amb' was calculated, the code that generated the *UPV string and pointers *PV and *V within this string used strlen() to calculate the length of the example; however, the example string may contain NUL bytes. Thus, it could happen that not enough space would be allocated for the *UPV string. Instead of computing the length of the example using strlen(), just use `s_len'. Added a new test to fatest, testAmbigWithNuls.
- Loading branch information
Showing
2 changed files
with
40 additions
and
5 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