]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix Zlib_Compress and Zlib_Uncompress
authorJim Paton <jpaton2@fb.com>
Tue, 18 Jun 2013 23:57:42 +0000 (16:57 -0700)
committerJim Paton <jpaton2@fb.com>
Tue, 18 Jun 2013 23:57:42 +0000 (16:57 -0700)
commit09de7a3b6a7a0f5ccfc3acf92b57c1af0509b179
tree8c997b471d221bad772e115a38e27bfcf5a74cb1
parent3cc1af20623baeea7aa9d3845ce4c7a54592b531
Fix Zlib_Compress and Zlib_Uncompress

Summary:
Zlib_{Compress,Uncompress} did not handle very small input buffers properly. In addition, they did not call inflate/deflate until Z_STREAM_END was returned; it was possible for them to exit when only Z_OK had returned.

This diff also fixes a bunch of lint errors.

Test Plan: Run make check

Reviewers: dhruba, sheki, haobo

Reviewed By: dhruba

CC: leveldb
Differential Revision: https://reviews.facebook.net/D11301
port/port_posix.h