James Zern fed7c0485a 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: I4050b13a7e61ec023c0ef50958c45f651cf34c49
2012-10-29 14:00:33 -07:00
..
2012-07-21 12:20:19 -07:00
2012-10-29 13:59:48 -07:00
2011-03-26 10:15:44 -07:00
2011-03-26 10:15:44 -07:00