diff options
author | Bryan Huh <bryan@box.com> | 2015-11-08 16:35:01 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-09 19:25:05 +0100 |
commit | 72f9a6349cae0eba7caf9e338bee46c1d9baed27 (patch) | |
tree | 9e1316778c924c6982cd637c3f584ac4cf528cb2 /libavutil/color_utils.c | |
parent | ddbad15898287bdce7da08dc49664f061a87f379 (diff) | |
download | ffmpeg-72f9a6349cae0eba7caf9e338bee46c1d9baed27.tar.gz |
avformat/cache: Avoid int-overflow in cache compare function
cache protocol indexes its cache using AVTreeNodes which require a cmp
function for inserting and searching new cache-entries. This cmp
function expects a 32-bit int return value (negative, zero, or positive)
but the cache cmp function returns an int64_t which can overflow the
int, giving negative numbers for when it should be positive, vice versa.
This manifests itself only for very large files (e.g. 4GB+)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/color_utils.c')
0 files changed, 0 insertions, 0 deletions