libwebp/src
James Zern 306335198d muxread: fix reading of buffers > riff size
After:
  2c70ad76 muxread,CreateInternal: fix riff size checks (cl/200674839)

`SizeWithPadding()` adds `CHUNK_HEADER_SIZE` (plus additional 1 byte
padding if needed). A later check included `CHUNK_HEADER_SIZE` before
capping the value of the size passed to `WebPMuxCreateInternal()`,
missing cases with a small amount of extra data after the RIFF chunk
(like a newline when the file is opened and saved in a text editor) and
setting size to an incorrect value, so larger sizes would also fail.

Another check of `riff_size < CHUNK_HEADER_SIZE` after the call to
`SizeWithPadding()` is removed because 1) it could not fail given
`SizeWithPadding()` adds `CHUNK_HEADER_SIZE` to the value; and 2) it is
redundant as `size < RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE` is checked
earlier in the function.

Bug: webp:42340561
Change-Id: I58dc4f071b27c2841001b4012aabdb1869f64f97
2024-11-22 12:40:34 -08:00
..
dec Merge changes I25c30a9e,I0a192fc6,I4cf89575 into main 2024-08-01 18:36:34 +00:00
demux bump version to 1.4.0 2024-04-01 15:37:40 -07:00
dsp yuv.h: update RGB<->YUV coefficients in comment 2024-11-21 16:21:45 -08:00
enc fix overread in Intra4Preds_NEON 2024-10-08 16:55:12 -07:00
mux muxread: fix reading of buffers > riff size 2024-11-22 12:40:34 -08:00
utils Merge changes I25c30a9e,I0a192fc6,I4cf89575 into main 2024-08-01 18:36:34 +00:00
webp Fix WEBP_NODISCARD comment and C++ version 2024-07-09 14:24:00 +02:00
libwebp.pc.in libwebp{,demux,mux}.pc.in: Requires -> Requires.private 2023-01-17 18:32:44 -08:00
libwebp.rc bump version to 1.4.0 2024-04-01 15:37:40 -07:00
libwebpdecoder.pc.in *.pc.in: rename lib_prefix to webp_libname_prefix 2022-10-24 16:44:42 -07:00
libwebpdecoder.rc bump version to 1.4.0 2024-04-01 15:37:40 -07:00
Makefile.am bump version to 1.4.0 2024-04-01 15:37:40 -07:00