Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit 641f59e

Browse files
committed
infcover: remove OoM test for SetDictionary since we don't lazy alloc
window anymore
1 parent 58b51f6 commit 641f59e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/infcover.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,6 @@ local void inf(char *hex, char *what, unsigned step, int win, unsigned len,
323323
if (ret == Z_NEED_DICT) {
324324
ret = inflateSetDictionary(&strm, in, 1);
325325
assert(ret == Z_DATA_ERROR);
326-
mem_limit(&strm, 1);
327-
ret = inflateSetDictionary(&strm, out, 0);
328-
assert(ret == Z_MEM_ERROR);
329326
mem_limit(&strm, 0);
330327
((struct inflate_state *)strm.state)->mode = DICT;
331328
ret = inflateSetDictionary(&strm, out, 0);
@@ -419,8 +416,8 @@ local void cover_wrap(void)
419416
strm.avail_out = 1;
420417
strm.next_out = (void *)&ret;
421418
mem_limit(&strm, 1);
422-
ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_MEM_ERROR);
423-
ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_MEM_ERROR);
419+
ret = inflate(&strm, Z_NO_FLUSH);
420+
ret = inflate(&strm, Z_NO_FLUSH);
424421
mem_limit(&strm, 0);
425422
memset(dict, 0, 257);
426423
ret = inflateSetDictionary(&strm, dict, 257);

0 commit comments

Comments
 (0)