You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
rmdec: stricter error check to avoid theoretical unitialized use
CC: libav-stable@libav.org Bug-Id: CID 90558
This commit is contained in:
@@ -865,7 +865,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
st = s->streams[i];
|
st = s->streams[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
if(len<0 || s->pb->eof_reached)
|
if (len <= 0 || s->pb->eof_reached)
|
||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
|
|
||||||
res = ff_rm_parse_packet (s, s->pb, st, st->priv_data, len, pkt,
|
res = ff_rm_parse_packet (s, s->pb, st, st->priv_data, len, pkt,
|
||||||
|
Reference in New Issue
Block a user