THPDFCorpusStoreAction Type
Reports what the corpus minimization and store routine wrote to the regression corpus
Declaration
THPDFCorpusStoreAction= (csaAdded, csaReplaced, csaKeptExisting);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
csaAdded | No case file existed yet and the minimized case bytes were written as a new corpus entry |
csaReplaced | An existing case file was overwritten because the new minimized bytes differ from the stored ones |
csaKeptExisting | The existing stored bytes already match, so no file was rewritten |
Usage notes
- The value is returned in the Action field of THPDFCorpusCaseInfo after a corpus store run, next to the original and stored byte counts and the content SHA-256
- csaKeptExisting is the only outcome that skips the atomic write, so repeated runs over unchanged input leave the corpus untouched
- Combine with the minimization info in the same record to see how far the case shrank before being stored