Skip to content
Snippets Groups Projects
Commit 4f2ee9da authored by Andreas Cadhalpun's avatar Andreas Cadhalpun Committed by Anton Khirnov
Browse files

webp: validate the distance prefix code


According to the WebP Lossless Bitstream Specification the highest
allowed value for a prefix code is 39.

If prefix_code is too large, the calculated extra_bits has an invalid
value and triggers an assertion in get_bits.

Signed-off-by: default avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 66624ed6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment