android - Crashes in deflateEnd of zlib -


my program android app, , crashes in deflateend(&strm) of zlib. using zlib compress network traffic stream. zlib code below.

first, init deflate.

then, when stream buffer data has arrived, call deflate compress.

and then, when stream encounters eof, program crashes in deflateend().

except above call, zstream_ used in initial code likememset(&zstream_, 0, sizeof(zstream_)); think have little influence on crash.

by way, online , issue. occurs 50 times in tens of thousands of running. sorry cannot provide simple verifiable example now. try.

in addition, doubt usage of z_sync_flush not correct.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -