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

avpacket: fix size check in packet_alloc


The previous check only caught sizes from -AV_INPUT_BUFFER_PADDING_SIZE
to -1.

This fixes ubsan runtime error: signed integer overflow: 2147483647 + 32
cannot be represented in type 'int'

Signed-off-by: default avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 06628137
No related branches found
No related tags found
Loading
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