Guard against invalid sequences from external matchfinders (#3465)

This commit is contained in:
Elliot Gorokhovsky
2023-01-31 13:55:48 -05:00
committed by GitHub
parent 4794bbfe00
commit 64052ef57d
5 changed files with 96 additions and 37 deletions
+5 -1
View File
@@ -20,7 +20,11 @@ typedef enum {
EMF_ONE_BIG_SEQ = 1,
EMF_LOTS_OF_SEQS = 2,
EMF_BIG_ERROR = 3,
EMF_SMALL_ERROR = 4
EMF_SMALL_ERROR = 4,
EMF_INVALID_OFFSET = 5,
EMF_INVALID_MATCHLEN = 6,
EMF_INVALID_LITLEN = 7,
EMF_INVALID_LAST_LITS = 8
} EMF_testCase;
size_t zstreamExternalMatchFinder(