Minor security fixes

This commit is contained in:
Sean Purcell committed 2017-02-01 10:41:04 -08:00
1 parent 92ec2ea62f
commit 823d8c233b
2 files changed
+3 -1

No files matched your search

@@ -1331,6 +1331,8 @@ static void execute_sequences(io_streams_t *const streams,
}
match_length -= dict_copy;
}
} else if (offset > ctx->header.window_size) {
CORRUPTION();
}
// We must copy byte by byte because the match length might be larger