You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/extract_extradata_bsf: Fix leak discovered via fuzzing
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
53855e3c04
commit
5a412a5c3c
@@ -78,7 +78,7 @@ static int extract_extradata_h2645(AVBSFContext *ctx, AVPacket *pkt,
|
|||||||
ret = ff_h2645_packet_split(&h2645_pkt, pkt->data, pkt->size,
|
ret = ff_h2645_packet_split(&h2645_pkt, pkt->data, pkt->size,
|
||||||
ctx, 0, 0, ctx->par_in->codec_id, 1);
|
ctx, 0, 0, ctx->par_in->codec_id, 1);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
goto fail;
|
||||||
|
|
||||||
for (i = 0; i < h2645_pkt.nb_nals; i++) {
|
for (i = 0; i < h2645_pkt.nb_nals; i++) {
|
||||||
H2645NAL *nal = &h2645_pkt.nals[i];
|
H2645NAL *nal = &h2645_pkt.nals[i];
|
||||||
|
Reference in New Issue
Block a user