You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zlib.c: refactor stream chuncking to fit uLong 32bit counting
On Windows uLong and size_t are different, being 32bit and 64bit
respectively. Computations of mixed 32/64 bit types can be
implementation defined leading to potential accuracy loss and error.
Avoid wraparound of z.total_in and z.total_in by always
starting at zero. The chunk size is kept well within 32bit limits.
Ensure the z.total_in and z.total_in are _upcast_ when computing the
overall avail_in and avail_out values
Signed-off-by: Philip Oakley <[email protected]>
0 commit comments