diff options
author | Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> | 2015-05-11 20:07:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-11 20:21:48 +0200 |
commit | 0382c94f13b4b20456b7259e90b170dc020419b8 (patch) | |
tree | 42c90105b21105a5e4608a781916b3f7caf7054f /libavformat/aviobuf.c | |
parent | ae4eea8be45a0b212fd57ceaac1f11089ab81d98 (diff) | |
download | ffmpeg-0382c94f13b4b20456b7259e90b170dc020419b8.tar.gz |
id3v2: catch avio_read errors in check_tag
Since len is an unsigned int, the comparison is currently treated as
unsigned and thus ignores all errors from avio_read.
Thus cast len to int, which is unproblematic, because at that point len
is between 0 and 4.
This fixes 'Conditional jump or move depends on uninitialised value'
valgrind warnings in is_tag.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/aviobuf.c')
0 files changed, 0 insertions, 0 deletions