jpegdec: when scanning for 0xff marker ends, ensure desired result
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 28 Jul 2009 14:11:36 +0000 (16:11 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 28 Jul 2009 14:18:38 +0000 (16:18 +0200)
commit7a89fb046879bd76da73ef4da96ca1d692e6606a
tree6f4bfc25e68ce00b260421b324eb7900ef734767
parent52482a374197ea562753d95fefbac26993258313
jpegdec: when scanning for 0xff marker ends, ensure desired result

Otherwise, any non 0xff byte at end of data would be mistaken for
a tag byte, and in case of a frame_len 0 tag subsequently lead to an
infinite loop.
ext/jpeg/gstjpegdec.c