• J
    Fix Zlib_Compress and Zlib_Uncompress · 09de7a3b
    Jim Paton 提交于
    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
    09de7a3b
port_posix.h 10.9 KB