commit | 2261e1e4089bd9929c63edbbef70051c19a952de | [log] [tgz] |
---|---|---|
author | DRC <dcommander@users.sourceforge.net> | Thu Aug 21 03:40:37 2014 +0000 |
committer | DRC <dcommander@users.sourceforge.net> | Thu Aug 21 03:40:37 2014 +0000 |
tree | d78a876ba4002ece2c39224ca8fa0d0eb37ed73a | |
parent | 9c168ad23bd90ebd66cc486b32d64d6ce93b9f2a [diff] | |
parent | eddc355d18923b2fa3473c91dac727c6404c440a [diff] |
Actually, we need to increase the size of BUFSIZE, not just the size of _buffer. The previous patch might have cause problems if, for instance, state->free_in_buffer was 127 but 129 bytes were compressed. In that case, only 127 of the 129 bytes would have been written to the file. Also document the fix. git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1367 632fc199-4ca6-4c93-a231-07263d6284db