[support] Limit possible values
authorMarek Habersack <grendel@twistedcode.net>
Fri, 25 Sep 2015 19:18:22 +0000 (21:18 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Fri, 25 Sep 2015 19:18:22 +0000 (21:18 +0200)
commitb4d5016b5e42fec226d93fd13260b6cac80eb384
tree33ea9a2326b3b3f99119568fad03013d10ab71f2
parent7628e59f4937a2e9be4b2fcb7636e2ee6707b103
[support] Limit possible values

Value returned from the reader function can be negative and ZStream's
avail_in should not be less than 0 as that value makes no sense and
other parts of code assume it to be equal or higher than 0.
support/zlib-helper.c