Add extended errorhandling in jpegturbo loader to fix a crash. 56/19456/1
authorxinyan.mei <xinyan.mei@samsung.com>
Wed, 9 Apr 2014 06:51:56 +0000 (15:51 +0900)
committerVictor Cebollada <v.cebollada@samsung.com>
Fri, 11 Apr 2014 14:45:51 +0000 (15:45 +0100)
commit10c46fa341d155fd95d40b9766fc8bb7bc1fe760
tree9123d2dc37bffe43eba6f2a93b5851d126dba0c2
parent850b59db7ad594923c77dd86031cf2e3cc92f40b
Add extended errorhandling in jpegturbo loader to fix a crash.

[Issue#] N/A
[Problem] crash at jpeg_read_header
[Cause] error handle for jpeg decompress
[Solution]
Added extended error handle to destroy jpeg_decompress_struct
and use setjmp/longjmp to jump out of the JPEG decoder.

Change-Id: If9455c43d234c8b82e73161fcd0177c98f2102e5
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
platform-abstractions/slp/resource-loader/loader-jpeg-turbo.cpp [changed mode: 0644->0755]