line |
true |
false |
branch |
209
|
41 |
131031 |
*p = (Pos)(m >= wsize ? m - wsize : NIL); |
210
|
131069 |
3 |
} while (--n); |
216
|
97529 |
775 |
*p = (Pos)(m >= wsize ? m - wsize : NIL); |
220
|
98301 |
3 |
} while (--n); |
251
|
33 |
0 |
if (version == Z_NULL || version[0] != my_version[0] || |
|
33 |
0 |
if (version == Z_NULL || version[0] != my_version[0] || |
|
0 |
33 |
if (version == Z_NULL || version[0] != my_version[0] || |
255
|
0 |
33 |
if (strm == Z_NULL) return Z_STREAM_ERROR; |
258
|
0 |
33 |
if (strm->zalloc == (alloc_func)0) { |
266
|
0 |
33 |
if (strm->zfree == (free_func)0) |
276
|
29 |
4 |
if (level == Z_DEFAULT_COMPRESSION) level = 6; |
279
|
2 |
31 |
if (windowBits < 0) { /* suppress zlib wrapper */ |
281
|
0 |
2 |
if (windowBits < -15) |
286
|
2 |
29 |
else if (windowBits > 15) { |
291
|
33 |
0 |
if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method != Z_DEFLATED || |
|
33 |
0 |
if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method != Z_DEFLATED || |
|
33 |
0 |
if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method != Z_DEFLATED || |
|
33 |
0 |
if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method != Z_DEFLATED || |
292
|
33 |
0 |
windowBits < 8 || windowBits > 15 || level < 0 || level > 9 || |
|
33 |
0 |
windowBits < 8 || windowBits > 15 || level < 0 || level > 9 || |
|
33 |
0 |
windowBits < 8 || windowBits > 15 || level < 0 || level > 9 || |
|
33 |
0 |
windowBits < 8 || windowBits > 15 || level < 0 || level > 9 || |
293
|
33 |
0 |
strategy < 0 || strategy > Z_FIXED || (windowBits == 8 && wrap != 1)) { |
|
0 |
33 |
strategy < 0 || strategy > Z_FIXED || (windowBits == 8 && wrap != 1)) { |
|
0 |
0 |
strategy < 0 || strategy > Z_FIXED || (windowBits == 8 && wrap != 1)) { |
296
|
0 |
33 |
if (windowBits == 8) windowBits = 9; /* until 256-byte window bug fixed */ |
298
|
0 |
33 |
if (s == Z_NULL) return Z_MEM_ERROR; |
364
|
33 |
0 |
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL || |
|
33 |
0 |
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL || |
|
33 |
0 |
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL || |
|
0 |
33 |
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL || |
392
|
420 |
0 |
if (strm == Z_NULL || |
|
420 |
0 |
if (strm == Z_NULL || |
393
|
0 |
420 |
strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) |
396
|
420 |
0 |
if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE && |
|
420 |
0 |
if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE && |
|
355 |
65 |
if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE && |
|
353 |
2 |
if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE && |
398
|
353 |
0 |
s->status != GZIP_STATE && |
400
|
353 |
0 |
s->status != EXTRA_STATE && |
401
|
353 |
0 |
s->status != NAME_STATE && |
402
|
353 |
0 |
s->status != COMMENT_STATE && |
403
|
84 |
269 |
s->status != HCRC_STATE && |
404
|
0 |
84 |
s->status != BUSY_STATE && |
422
|
1 |
0 |
if (deflateStateCheck(strm) || dictionary == Z_NULL) |
|
0 |
1 |
if (deflateStateCheck(strm) || dictionary == Z_NULL) |
426
|
1 |
0 |
if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead) |
|
1 |
0 |
if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead) |
|
1 |
0 |
if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead) |
|
0 |
1 |
if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead) |
430
|
1 |
0 |
if (wrap == 1) |
435
|
0 |
1 |
if (dictLength >= s->w_size) { |
436
|
0 |
0 |
if (wrap == 0) { /* already empty otherwise */ |
452
|
1 |
1 |
while (s->lookahead >= MIN_MATCH) { |
462
|
2 |
1 |
} while (--n); |
488
|
0 |
0 |
if (deflateStateCheck(strm)) |
492
|
0 |
0 |
if (len > s->w_size) |
494
|
0 |
0 |
if (dictionary != Z_NULL && len) |
|
0 |
0 |
if (dictionary != Z_NULL && len) |
496
|
0 |
0 |
if (dictLength != Z_NULL) |
507
|
0 |
33 |
if (deflateStateCheck(strm)) { |
519
|
0 |
33 |
if (s->wrap < 0) { |
524
|
2 |
31 |
s->wrap == 2 ? GZIP_STATE : |
529
|
2 |
31 |
s->wrap == 2 ? crc32(0L, Z_NULL, 0) : |
546
|
33 |
0 |
if (ret == Z_OK) |
556
|
0 |
0 |
if (deflateStateCheck(strm) || strm->state->wrap != 2) |
|
0 |
0 |
if (deflateStateCheck(strm) || strm->state->wrap != 2) |
568
|
0 |
0 |
if (deflateStateCheck(strm)) return Z_STREAM_ERROR; |
569
|
0 |
0 |
if (pending != Z_NULL) |
571
|
0 |
0 |
if (bits != Z_NULL) |
585
|
0 |
0 |
if (deflateStateCheck(strm)) return Z_STREAM_ERROR; |
587
|
0 |
0 |
if (bits < 0 || bits > 16 || |
|
0 |
0 |
if (bits < 0 || bits > 16 || |
|
0 |
0 |
if (bits < 0 || bits > 16 || |
592
|
0 |
0 |
if (put > bits) |
599
|
0 |
0 |
} while (bits); |
612
|
0 |
4 |
if (deflateStateCheck(strm)) return Z_STREAM_ERROR; |
618
|
1 |
3 |
if (level == Z_DEFAULT_COMPRESSION) level = 6; |
620
|
4 |
0 |
if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) { |
|
4 |
0 |
if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) { |
|
4 |
0 |
if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) { |
|
0 |
4 |
if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) { |
625
|
1 |
3 |
if ((strategy != s->strategy || func != configuration_table[level].func) && |
|
1 |
0 |
if ((strategy != s->strategy || func != configuration_table[level].func) && |
|
4 |
0 |
if ((strategy != s->strategy || func != configuration_table[level].func) && |
629
|
0 |
4 |
if (err == Z_STREAM_ERROR) |
631
|
4 |
0 |
if (strm->avail_in || (s->strstart - s->block_start) + s->lookahead) |
|
0 |
4 |
if (strm->avail_in || (s->strstart - s->block_start) + s->lookahead) |
634
|
3 |
1 |
if (s->level != level) { |
635
|
0 |
3 |
if (s->level == 0 && s->matches != 0) { |
|
0 |
0 |
if (s->level == 0 && s->matches != 0) { |
636
|
0 |
0 |
if (s->matches == 1) |
662
|
0 |
0 |
if (deflateStateCheck(strm)) return Z_STREAM_ERROR; |
714
|
0 |
0 |
if (deflateStateCheck(strm)) |
724
|
0 |
0 |
wraplen = 6 + (s->strstart ? 4 : 0); |
729
|
0 |
0 |
if (s->gzhead != Z_NULL) { /* user-supplied gzip header */ |
731
|
0 |
0 |
if (s->gzhead->extra != Z_NULL) |
734
|
0 |
0 |
if (str != Z_NULL) |
737
|
0 |
0 |
} while (*str++); |
739
|
0 |
0 |
if (str != Z_NULL) |
742
|
0 |
0 |
} while (*str++); |
743
|
0 |
0 |
if (s->gzhead->hcrc) |
753
|
0 |
0 |
if (s->w_bits != 15 || s->hash_bits != 8 + 7) |
|
0 |
0 |
if (s->w_bits != 15 || s->hash_bits != 8 + 7) |
754
|
0 |
0 |
return (s->w_bits <= s->hash_bits ? fixedlen : storelen) + wraplen; |
789
|
68 |
103 |
if (len > strm->avail_out) len = strm->avail_out; |
790
|
2 |
169 |
if (len == 0) return; |
798
|
101 |
68 |
if (s->pending == 0) { |
821
|
349 |
0 |
if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) { |
|
349 |
0 |
if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) { |
|
0 |
349 |
if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) { |
826
|
349 |
0 |
if (strm->next_out == Z_NULL || |
|
248 |
101 |
if (strm->next_out == Z_NULL || |
827
|
248 |
0 |
(strm->avail_in != 0 && strm->next_in == Z_NULL) || |
|
54 |
295 |
(strm->avail_in != 0 && strm->next_in == Z_NULL) || |
828
|
0 |
54 |
(s->status == FINISH_STATE && flush != Z_FINISH)) { |
831
|
0 |
349 |
if (strm->avail_out == 0) ERR_RETURN(strm, Z_BUF_ERROR); |
837
|
68 |
281 |
if (s->pending != 0) { |
839
|
42 |
26 |
if (strm->avail_out == 0) { |
854
|
39 |
242 |
} else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) && |
|
4 |
35 |
} else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) && |
|
1 |
38 |
} else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) && |
|
3 |
36 |
} else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) && |
|
3 |
0 |
} else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) && |
860
|
21 |
283 |
if (s->status == FINISH_STATE && strm->avail_in != 0) { |
|
0 |
21 |
if (s->status == FINISH_STATE && strm->avail_in != 0) { |
865
|
31 |
273 |
if (s->status == INIT_STATE && s->wrap == 0) |
|
2 |
29 |
if (s->status == INIT_STATE && s->wrap == 0) |
867
|
29 |
275 |
if (s->status == INIT_STATE) { |
872
|
29 |
0 |
if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2) |
|
0 |
29 |
if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2) |
874
|
0 |
29 |
else if (s->level < 6) |
876
|
25 |
4 |
else if (s->level == 6) |
881
|
1 |
28 |
if (s->strstart != 0) header |= PRESET_DICT; |
887
|
1 |
28 |
if (s->strstart != 0) { |
896
|
0 |
29 |
if (s->pending != 0) { |
902
|
2 |
302 |
if (s->status == GZIP_STATE) { |
908
|
2 |
0 |
if (s->gzhead == Z_NULL) { |
914
|
2 |
0 |
put_byte(s, s->level == 9 ? 2 : |
|
2 |
0 |
put_byte(s, s->level == 9 ? 2 : |
|
0 |
2 |
put_byte(s, s->level == 9 ? 2 : |
922
|
0 |
2 |
if (s->pending != 0) { |
928
|
0 |
0 |
put_byte(s, (s->gzhead->text ? 1 : 0) + |
|
0 |
0 |
put_byte(s, (s->gzhead->text ? 1 : 0) + |
|
0 |
0 |
put_byte(s, (s->gzhead->text ? 1 : 0) + |
|
0 |
0 |
put_byte(s, (s->gzhead->text ? 1 : 0) + |
|
0 |
0 |
put_byte(s, (s->gzhead->text ? 1 : 0) + |
938
|
0 |
0 |
put_byte(s, s->level == 9 ? 2 : |
|
0 |
0 |
put_byte(s, s->level == 9 ? 2 : |
|
0 |
0 |
put_byte(s, s->level == 9 ? 2 : |
942
|
0 |
0 |
if (s->gzhead->extra != Z_NULL) { |
946
|
0 |
0 |
if (s->gzhead->hcrc) |
953
|
0 |
304 |
if (s->status == EXTRA_STATE) { |
954
|
0 |
0 |
if (s->gzhead->extra != Z_NULL) { |
957
|
0 |
0 |
while (s->pending + left > s->pending_buf_size) { |
962
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
965
|
0 |
0 |
if (s->pending != 0) { |
975
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
980
|
0 |
304 |
if (s->status == NAME_STATE) { |
981
|
0 |
0 |
if (s->gzhead->name != Z_NULL) { |
985
|
0 |
0 |
if (s->pending == s->pending_buf_size) { |
986
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
988
|
0 |
0 |
if (s->pending != 0) { |
996
|
0 |
0 |
} while (val != 0); |
997
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
1002
|
0 |
304 |
if (s->status == COMMENT_STATE) { |
1003
|
0 |
0 |
if (s->gzhead->comment != Z_NULL) { |
1007
|
0 |
0 |
if (s->pending == s->pending_buf_size) { |
1008
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
1010
|
0 |
0 |
if (s->pending != 0) { |
1018
|
0 |
0 |
} while (val != 0); |
1019
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
1023
|
0 |
304 |
if (s->status == HCRC_STATE) { |
1024
|
0 |
0 |
if (s->gzhead->hcrc) { |
1025
|
0 |
0 |
if (s->pending + 2 > s->pending_buf_size) { |
1027
|
0 |
0 |
if (s->pending != 0) { |
1040
|
0 |
0 |
if (s->pending != 0) { |
1049
|
61 |
243 |
if (strm->avail_in != 0 || s->lookahead != 0 || |
|
27 |
34 |
if (strm->avail_in != 0 || s->lookahead != 0 || |
|
27 |
0 |
if (strm->avail_in != 0 || s->lookahead != 0 || |
1050
|
6 |
21 |
(flush != Z_NO_FLUSH && s->status != FINISH_STATE)) { |
1053
|
4 |
279 |
bstate = s->level == 0 ? deflate_stored(s, flush) : |
|
0 |
279 |
bstate = s->level == 0 ? deflate_stored(s, flush) : |
|
0 |
279 |
bstate = s->level == 0 ? deflate_stored(s, flush) : |
1058
|
263 |
20 |
if (bstate == finish_started || bstate == finish_done) { |
|
10 |
253 |
if (bstate == finish_started || bstate == finish_done) { |
1061
|
36 |
247 |
if (bstate == need_more || bstate == finish_started) { |
|
20 |
16 |
if (bstate == need_more || bstate == finish_started) { |
1062
|
27 |
240 |
if (strm->avail_out == 0) { |
1074
|
6 |
10 |
if (bstate == block_done) { |
1075
|
0 |
6 |
if (flush == Z_PARTIAL_FLUSH) { |
1077
|
4 |
2 |
} else if (flush != Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */ |
1082
|
1 |
3 |
if (flush == Z_FULL_FLUSH) { |
1084
|
1 |
0 |
if (s->lookahead == 0) { |
1092
|
0 |
6 |
if (strm->avail_out == 0) { |
1099
|
6 |
31 |
if (flush != Z_FINISH) return Z_OK; |
1100
|
2 |
29 |
if (s->wrap <= 0) return Z_STREAM_END; |
1104
|
2 |
27 |
if (s->wrap == 2) { |
1124
|
29 |
0 |
if (s->wrap > 0) s->wrap = -s->wrap; /* write the trailer only once! */ |
1134
|
0 |
33 |
if (deflateStateCheck(strm)) return Z_STREAM_ERROR; |
1139
|
33 |
0 |
TRY_FREE(strm, strm->state->pending_buf); |
1140
|
33 |
0 |
TRY_FREE(strm, strm->state->head); |
1141
|
33 |
0 |
TRY_FREE(strm, strm->state->prev); |
1142
|
33 |
0 |
TRY_FREE(strm, strm->state->window); |
1147
|
3 |
30 |
return status == BUSY_STATE ? Z_DATA_ERROR : Z_OK; |
1166
|
0 |
0 |
if (deflateStateCheck(source) || dest == Z_NULL) { |
|
0 |
0 |
if (deflateStateCheck(source) || dest == Z_NULL) { |
1175
|
0 |
0 |
if (ds == Z_NULL) return Z_MEM_ERROR; |
1185
|
0 |
0 |
if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL || |
|
0 |
0 |
if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL || |
|
0 |
0 |
if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL || |
|
0 |
0 |
if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL || |
1221
|
3 |
244 |
if (len > size) len = size; |
1222
|
0 |
247 |
if (len == 0) return 0; |
1227
|
217 |
30 |
if (strm->state->wrap == 1) { |
1231
|
2 |
28 |
else if (strm->state->wrap == 2) { |
1288
|
7394 |
7910 |
s->strstart - (IPos)MAX_DIST(s) : NIL; |
1314
|
3 |
15301 |
if (s->prev_length >= s->good_match) { |
1320
|
78 |
15226 |
if ((uInt)nice_match > s->lookahead) nice_match = (int)s->lookahead; |
1373
|
5527 |
12843 |
if (match[best_len] != scan_end || |
|
2292 |
3235 |
if (match[best_len] != scan_end || |
1374
|
1304 |
988 |
match[best_len - 1] != scan_end1 || |
1375
|
0 |
1304 |
*match != *scan || |
1391
|
38861 |
2 |
} while (*++scan == *++match && *++scan == *++match && |
|
38861 |
0 |
} while (*++scan == *++match && *++scan == *++match && |
1392
|
38861 |
0 |
*++scan == *++match && *++scan == *++match && |
|
38861 |
0 |
*++scan == *++match && *++scan == *++match && |
1393
|
38861 |
0 |
*++scan == *++match && *++scan == *++match && |
|
38861 |
0 |
*++scan == *++match && *++scan == *++match && |
1394
|
38859 |
2 |
*++scan == *++match && *++scan == *++match && |
|
37646 |
1213 |
*++scan == *++match && *++scan == *++match && |
1395
|
38863 |
87 |
scan < strend); |
1405
|
1304 |
0 |
if (len > best_len) { |
1408
|
1220 |
84 |
if (len >= nice_match) break; |
1417
|
3069 |
14081 |
&& --chain_length != 0); |
|
3066 |
3 |
&& --chain_length != 0); |
1419
|
15300 |
4 |
if ((uInt)best_len <= s->lookahead) return (uInt)best_len; |
1555
|
3 |
1634 |
if (s->strstart >= wsize + MAX_DIST(s)) { |
1561
|
0 |
3 |
if (s->insert > s->strstart) |
1566
|
1392 |
245 |
if (s->strm->avail_in == 0) break; |
1585
|
227 |
18 |
if (s->lookahead + s->insert >= MIN_MATCH) { |
1592
|
4 |
227 |
while (s->insert) { |
1600
|
0 |
4 |
if (s->lookahead + s->insert < MIN_MATCH) |
1608
|
232 |
13 |
} while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0); |
|
0 |
232 |
} while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0); |
1617
|
1625 |
12 |
if (s->high_water < s->window_size) { |
1621
|
33 |
1592 |
if (s->high_water < curr) { |
1626
|
31 |
2 |
if (init > WIN_INIT) |
1631
|
209 |
1383 |
else if (s->high_water < (ulg)curr + WIN_INIT) { |
1637
|
0 |
209 |
if (init > s->window_size - s->high_water) |
1713
|
0 |
4 |
if (s->strm->avail_out < have) /* need room for header */ |
1718
|
4 |
0 |
if (len > (ulg)left + s->strm->avail_in) |
1720
|
4 |
0 |
if (len > have) |
1728
|
4 |
0 |
if (len < min_block && ((len == 0 && flush != Z_FINISH) || |
|
0 |
4 |
if (len < min_block && ((len == 0 && flush != Z_FINISH) || |
|
0 |
0 |
if (len < min_block && ((len == 0 && flush != Z_FINISH) || |
|
2 |
2 |
if (len < min_block && ((len == 0 && flush != Z_FINISH) || |
1729
|
0 |
2 |
flush == Z_NO_FLUSH || |
1736
|
0 |
0 |
last = flush == Z_FINISH && len == left + s->strm->avail_in ? 1 : 0; |
|
0 |
0 |
last = flush == Z_FINISH && len == left + s->strm->avail_in ? 1 : 0; |
1755
|
0 |
0 |
if (left) { |
1756
|
0 |
0 |
if (left > len) |
1769
|
0 |
0 |
if (len) { |
1775
|
0 |
0 |
} while (last == 0); |
1784
|
0 |
4 |
if (used) { |
1788
|
0 |
0 |
if (used >= s->w_size) { /* supplant the previous history */ |
1795
|
0 |
0 |
if (s->window_size - s->strstart <= used) { |
1799
|
0 |
0 |
if (s->matches < 2) |
1801
|
0 |
0 |
if (s->insert > s->strstart) |
1810
|
0 |
4 |
if (s->high_water < s->strstart) |
1814
|
0 |
4 |
if (last) |
1818
|
2 |
2 |
if (flush != Z_NO_FLUSH && flush != Z_FINISH && |
|
1 |
1 |
if (flush != Z_NO_FLUSH && flush != Z_FINISH && |
|
1 |
0 |
if (flush != Z_NO_FLUSH && flush != Z_FINISH && |
1819
|
0 |
1 |
s->strm->avail_in == 0 && (long)s->strstart == s->block_start) |
1824
|
1 |
3 |
if (s->strm->avail_in > have && s->block_start >= (long)s->w_size) { |
|
1 |
0 |
if (s->strm->avail_in > have && s->block_start >= (long)s->w_size) { |
1829
|
1 |
0 |
if (s->matches < 2) |
1832
|
0 |
1 |
if (s->insert > s->strstart) |
1835
|
4 |
0 |
if (have > s->strm->avail_in) |
1837
|
2 |
2 |
if (have) { |
1842
|
0 |
4 |
if (s->high_water < s->strstart) |
1855
|
4 |
0 |
if (left >= min_block || |
|
0 |
4 |
if (left >= min_block || |
1856
|
0 |
0 |
((left || flush == Z_FINISH) && flush != Z_NO_FLUSH && |
|
2 |
2 |
((left || flush == Z_FINISH) && flush != Z_NO_FLUSH && |
|
2 |
0 |
((left || flush == Z_FINISH) && flush != Z_NO_FLUSH && |
1857
|
2 |
0 |
s->strm->avail_in == 0 && left <= have)) { |
1859
|
1 |
0 |
last = flush == Z_FINISH && s->strm->avail_in == 0 && |
1860
|
1 |
1 |
len == left ? 1 : 0; |
|
1 |
0 |
len == left ? 1 : 0; |
1867
|
1 |
3 |
return last ? finish_started : need_more; |
1890
|
0 |
0 |
if (s->lookahead < MIN_LOOKAHEAD) { |
1892
|
0 |
0 |
if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { |
|
0 |
0 |
if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { |
1895
|
0 |
0 |
if (s->lookahead == 0) break; /* flush the current block */ |
1902
|
0 |
0 |
if (s->lookahead >= MIN_MATCH) { |
1909
|
0 |
0 |
if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) { |
|
0 |
0 |
if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) { |
1917
|
0 |
0 |
if (s->match_length >= MIN_MATCH) { |
1920
|
0 |
0 |
_tr_tally_dist(s, s->strstart - s->match_start, |
1929
|
0 |
0 |
if (s->match_length <= s->max_insert_length && |
|
0 |
0 |
if (s->match_length <= s->max_insert_length && |
1938
|
0 |
0 |
} while (--s->match_length != 0); |
1961
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
1964
|
0 |
0 |
if (flush == Z_FINISH) { |
1965
|
0 |
0 |
FLUSH_BLOCK(s, 1); |
|
0 |
0 |
FLUSH_BLOCK(s, 1); |
1968
|
0 |
0 |
if (s->sym_next) |
1969
|
0 |
0 |
FLUSH_BLOCK(s, 0); |
|
0 |
0 |
FLUSH_BLOCK(s, 0); |
1993
|
1635 |
61735 |
if (s->lookahead < MIN_LOOKAHEAD) { |
1995
|
1622 |
13 |
if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { |
|
240 |
1382 |
if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { |
1998
|
38 |
1357 |
if (s->lookahead == 0) break; /* flush the current block */ |
2005
|
63038 |
54 |
if (s->lookahead >= MIN_MATCH) { |
2014
|
17852 |
45240 |
if (hash_head != NIL && s->prev_length < s->max_lazy_match && |
|
16635 |
1217 |
if (hash_head != NIL && s->prev_length < s->max_lazy_match && |
|
15304 |
1331 |
if (hash_head != NIL && s->prev_length < s->max_lazy_match && |
2023
|
14081 |
1223 |
if (s->match_length <= 5 && (s->strategy == Z_FILTERED |
|
14081 |
0 |
if (s->match_length <= 5 && (s->strategy == Z_FILTERED |
2025
|
86 |
13995 |
|| (s->match_length == MIN_MATCH && |
|
64 |
22 |
|| (s->match_length == MIN_MATCH && |
2039
|
1240 |
61852 |
if (s->prev_length >= MIN_MATCH && s->match_length <= s->prev_length) { |
|
1240 |
0 |
if (s->prev_length >= MIN_MATCH && s->match_length <= s->prev_length) { |
2045
|
1226 |
14 |
_tr_tally_dist(s, s->strstart - 1 - s->prev_match, |
2056
|
310795 |
14 |
if (++s->strstart <= max_insert) { |
2059
|
309569 |
1240 |
} while (--s->prev_length != 0); |
2064
|
0 |
1240 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
2066
|
60585 |
1267 |
} else if (s->match_available) { |
2073
|
1 |
60584 |
if (bflush) { |
2074
|
1 |
0 |
FLUSH_BLOCK_ONLY(s, 0); |
2078
|
1 |
60584 |
if (s->strm->avail_out == 0) return need_more; |
2089
|
27 |
11 |
if (s->match_available) { |
2095
|
29 |
9 |
if (flush == Z_FINISH) { |
2096
|
29 |
0 |
FLUSH_BLOCK(s, 1); |
|
19 |
10 |
FLUSH_BLOCK(s, 1); |
2099
|
5 |
4 |
if (s->sym_next) |
2100
|
4 |
1 |
FLUSH_BLOCK(s, 0); |
|
3 |
2 |
FLUSH_BLOCK(s, 0); |
2123
|
0 |
0 |
if (s->lookahead <= MAX_MATCH) { |
2125
|
0 |
0 |
if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) { |
|
0 |
0 |
if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) { |
2128
|
0 |
0 |
if (s->lookahead == 0) break; /* flush the current block */ |
2133
|
0 |
0 |
if (s->lookahead >= MIN_MATCH && s->strstart > 0) { |
|
0 |
0 |
if (s->lookahead >= MIN_MATCH && s->strstart > 0) { |
2136
|
0 |
0 |
if (prev == *++scan && prev == *++scan && prev == *++scan) { |
|
0 |
0 |
if (prev == *++scan && prev == *++scan && prev == *++scan) { |
|
0 |
0 |
if (prev == *++scan && prev == *++scan && prev == *++scan) { |
2139
|
0 |
0 |
} while (prev == *++scan && prev == *++scan && |
|
0 |
0 |
} while (prev == *++scan && prev == *++scan && |
2140
|
0 |
0 |
prev == *++scan && prev == *++scan && |
|
0 |
0 |
prev == *++scan && prev == *++scan && |
2141
|
0 |
0 |
prev == *++scan && prev == *++scan && |
|
0 |
0 |
prev == *++scan && prev == *++scan && |
2142
|
0 |
0 |
prev == *++scan && prev == *++scan && |
|
0 |
0 |
prev == *++scan && prev == *++scan && |
2143
|
0 |
0 |
scan < strend); |
2145
|
0 |
0 |
if (s->match_length > s->lookahead) |
2153
|
0 |
0 |
if (s->match_length >= MIN_MATCH) { |
2156
|
0 |
0 |
_tr_tally_dist(s, 1, s->match_length - MIN_MATCH, bflush); |
2168
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
2171
|
0 |
0 |
if (flush == Z_FINISH) { |
2172
|
0 |
0 |
FLUSH_BLOCK(s, 1); |
|
0 |
0 |
FLUSH_BLOCK(s, 1); |
2175
|
0 |
0 |
if (s->sym_next) |
2176
|
0 |
0 |
FLUSH_BLOCK(s, 0); |
|
0 |
0 |
FLUSH_BLOCK(s, 0); |
2192
|
0 |
0 |
if (s->lookahead == 0) { |
2194
|
0 |
0 |
if (s->lookahead == 0) { |
2195
|
0 |
0 |
if (flush == Z_NO_FLUSH) |
2207
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
2210
|
0 |
0 |
if (flush == Z_FINISH) { |
2211
|
0 |
0 |
FLUSH_BLOCK(s, 1); |
|
0 |
0 |
FLUSH_BLOCK(s, 1); |
2214
|
0 |
0 |
if (s->sym_next) |
2215
|
0 |
0 |
FLUSH_BLOCK(s, 0); |
|
0 |
0 |
FLUSH_BLOCK(s, 0); |