]> granicus.if.org Git - libjpeg-turbo/commit
Actually, we need to increase the size of BUFSIZE, not just the size of _buffer....
authorDRC <dcommander@users.sourceforge.net>
Thu, 21 Aug 2014 03:40:37 +0000 (03:40 +0000)
committerDRC <dcommander@users.sourceforge.net>
Thu, 21 Aug 2014 03:40:37 +0000 (03:40 +0000)
commit2261e1e4089bd9929c63edbbef70051c19a952de
treed78a876ba4002ece2c39224ca8fa0d0eb37ed73a
parent9c168ad23bd90ebd66cc486b32d64d6ce93b9f2a
parenteddc355d18923b2fa3473c91dac727c6404c440a
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
ChangeLog.txt
jchuff.c