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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -