diff options
| author | Nathan Moinvaziri <nathan@solidstatenetworks.com> | 2021-10-27 17:58:21 -0700 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2021-12-02 09:26:32 +0100 |
| commit | d87543910abc7fad7097a29c052aac6e6860f792 (patch) | |
| tree | 3c3236125762d66d484101dc0c60f04248609771 /test/example.c | |
| parent | b4ca25afabba7b4bf74d36e26728006d28df891d (diff) | |
| download | Project-Tick-d87543910abc7fad7097a29c052aac6e6860f792.tar.gz Project-Tick-d87543910abc7fad7097a29c052aac6e6860f792.zip | |
Fixed inflateGetDictionary length check may include bytes added by last call to inflate.
Diffstat (limited to 'test/example.c')
| -rw-r--r-- | test/example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example.c b/test/example.c index 2a03328432..6324a33c60 100644 --- a/test/example.c +++ b/test/example.c @@ -551,7 +551,7 @@ void test_dict_inflate(unsigned char *compr, size_t comprLen, unsigned char *unc err = PREFIX(inflateGetDictionary)(&d_stream, NULL, &check_dictionary_len); CHECK_ERR(err, "inflateGetDictionary"); #ifndef S390_DFLTCC_INFLATE - if (check_dictionary_len != sizeof(dictionary)) + if (check_dictionary_len < sizeof(dictionary)) error("bad dictionary length\n"); #endif |
