]> 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:38:14 +0000 (03:38 +0000)
committerDRC <dcommander@users.sourceforge.net>
Thu, 21 Aug 2014 03:38:14 +0000 (03:38 +0000)
commiteddc355d18923b2fa3473c91dac727c6404c440a
tree84bd5c5da72551a8cd90512f1752351ae4698184
parent29823fa9a6171144ebc10ea14fb0c44f5624ee5e
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/branches/1.3.x@1366 632fc199-4ca6-4c93-a231-07263d6284db
ChangeLog.txt
jchuff.c