-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#6712 record bounds: Add record filter sanity checks (#6749)
Adds two sanity checks developed to identify what was at first believed to be a new bug but turned out to be #6712: + Ensure that last_encoding is empty on an input switch, to avoid recording the wrong encoding in pc2encoding. + Ensure the encoding size matches the instr size when inserting chunk-new encodings. + Augment the reader check for mismatching encoding vs instr sizes, and abort in release build too. Although #6712 is fixed, these checks are still useful to prevent regressions. Plus, the reader_t check detects other bugs as well and we know at least one other is out there in #6303. Making the reader check abort in release build should help avoid wasted work as already happened here where we didn't notice the printed warnings in release build. Tested by running record_filter on large proprietary inputs: no checks failed. Issue: #6712
- Loading branch information
1 parent
60eb0b1
commit 0838ea7
Showing
2 changed files
with
35 additions
and
6 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