James Zern 30763333f3 libwebp: validate chunk size in ParseOptionalChunks
the max wasn't checked leading to a rollover case, possibly exploitable.
additionally check the RIFF size early, to avoid similar issues.

pulled from chromium:
 http://codereview.chromium.org/11229048/

Change-Id: Ifebc712bf3d3de0129b76ca4c57c68e062abc429
2012-10-22 21:57:59 -07:00
..
2012-08-15 10:27:54 -07:00
2012-01-06 14:49:06 -08:00
2012-07-24 15:06:00 -07:00
2012-01-06 14:49:06 -08:00
2012-08-03 15:41:01 -07:00
2012-08-10 02:10:32 +05:30
2012-07-16 22:12:59 -07:00