[lib] Validate buffers when ZSTD_c_stable{In,Out}Buffer is set

Adds the validation of the input/output buffers only. They are still
unused.
This commit is contained in:
Nick Terrell
2020-10-30 10:55:34 -07:00
parent e3e0775cc8
commit c74be3f6de
4 changed files with 48 additions and 1 deletions
+4
View File
@@ -291,6 +291,10 @@ struct ZSTD_CCtx_s {
ZSTD_cStreamStage streamStage;
U32 frameEnded;
/* Stable in/out buffer verification */
ZSTD_inBuffer expectedInBuffer;
size_t expectedOutBufferSize;
/* Dictionary */
ZSTD_localDict localDict;
const ZSTD_CDict* cdict;