summaryrefslogtreecommitdiff
path: root/test/example.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@solidstatenetworks.com>2021-10-27 17:58:21 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2021-12-02 09:26:32 +0100
commitd87543910abc7fad7097a29c052aac6e6860f792 (patch)
tree3c3236125762d66d484101dc0c60f04248609771 /test/example.c
parentb4ca25afabba7b4bf74d36e26728006d28df891d (diff)
downloadProject-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.c2
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