Return to gzopen.c CVS log | Up to [local] / src / usr.bin / compress |
version 1.8, 2003/06/27 19:29:45 | version 1.9, 2003/06/29 21:14:37 | ||
---|---|---|---|
|
|
||
(uInt)(s->z_stream.next_out - start)); | (uInt)(s->z_stream.next_out - start)); | ||
start = s->z_stream.next_out; | start = s->z_stream.next_out; | ||
if (get_int32(s) != s->z_crc || | if (get_int32(s) != s->z_crc) { | ||
get_int32(s) != s->z_stream.total_out) { | errno = EINVAL; | ||
return -1; | |||
} | |||
if (get_int32(s) != s->z_stream.total_out) { | |||
errno = EIO; | errno = EIO; | ||
return -1; | return -1; | ||
} | } |