evas: fix _evas_jpeg_membuf_src_skip bug
authorJiyoun Park <jy0703.park@samsung.com>
Mon, 11 Jul 2011 02:29:16 +0000 (02:29 +0000)
committerMike McCormack <mikem@ring3k.org>
Mon, 11 Jul 2011 02:29:16 +0000 (02:29 +0000)
commit81098de5a63d15332216d5905998aed3a9536fd1
tree2e22bc40edfe6b73208f7a6c5509f0085a6778af
parent3b5050421b50b239d133afa9c44e6a1b36a0ad4b
evas: fix _evas_jpeg_membuf_src_skip bug

If file was corrupted , the size value of app frame is bigger than real file
size.

For example, if somebody change file using editor, the file start with (FF
D8 FF E0 FF DB ..).

But real file size can be small than (FF DB).

In that case, _evas_jpeg_membuf_src_skip set src->pub.bytes_in_buffer to
negative value, it make crash later.

Signed-off-by: Jiyoun Park <jy0703.park@samsung.com>
SVN revision: 61222
legacy/evas/src/modules/loaders/jpeg/evas_image_load_jpeg.c