tiff: do not overread the source buffer
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 3 Jun 2013 02:53:02 +0000 (04:53 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sat, 22 Jun 2013 06:51:56 +0000 (08:51 +0200)
commit96de1c5ed90b4defb4126d946061d4a23101b28c
treecc85ad0be549be724b29461c620161dcc9f5f426
parentea7ba1d8717dacca70771d0fbe553acbdbd47739
tiff: do not overread the source buffer

At least 2 bytes from the source are read every loop.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 9c2216976907336dfae0e8e38a4d70ca2465a92c)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Conflicts:
libavcodec/tiff.c
libavcodec/tiff.c