diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-04-18 18:50:59 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-04-25 23:01:37 +0200 |
commit | d60445258ce5d11eaccc285e5c7931ad26a96eb5 (patch) | |
tree | 5815d591020f9fedeb6136d700a946048c8318b5 /tests/checkasm/checkasm.c | |
parent | 6676038b23bd8272b9d6b9bb94f64b55f5dfd954 (diff) | |
download | ffmpeg-d60445258ce5d11eaccc285e5c7931ad26a96eb5.tar.gz |
avcodec/webp: Check more directly for invalid codes
Don't rely on invalid codes leading to get_vlc2() returning
-1, which then gets converted to an uint8_t, i.e. to 255
and runs afoul of a length check later. After all, get_vlc2()
could be changed to return something else which may
be valid when cast to uint8_t.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/checkasm/checkasm.c')
0 files changed, 0 insertions, 0 deletions