Fix data corruption issues when decompressing large JPEG images and/or using buffered I/O.  Specifically, decode_mcu_fast() can potentially process more than 1 MCU, so make sure there is enough space in the buffer to accommodate this case.  Otherwise, the buffer pointer goes negative, and bad mojo ensues.  Also, the fast decoder's method of handling unread markers doesn't make libjpeg's restart handler happy, so disable fast decode when restarts are used.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4012 3789f03b-4d11-0410-bbf8-ca57d06f2519
1 file changed