The following issues were found
libavcodec/indeo5.c
1 issues
Line: 651
Column: 5
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
ff_ivi_init_static_vlc();
/* copy rvmap tables in our context so we can apply changes to them */
memcpy(ctx->rvmap_tabs, ff_ivi_rvmap_tabs, sizeof(ff_ivi_rvmap_tabs));
/* set the initial picture layout according to the basic profile:
there is only one band per plane (no scalability), only one tile (no local decoding)
and picture format = YVU9 */
ctx->pic_conf.pic_width = avctx->width;
Reported by FlawFinder.
libavcodec/interplayacm.c
1 issues
Line: 572
Column: 9
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
s->bitstream_index = 0;
}
if (pkt->data)
memcpy(&s->bitstream[s->bitstream_index + s->bitstream_size], pkt->data, buf_size);
buf = &s->bitstream[s->bitstream_index];
buf_size += s->bitstream_size;
s->bitstream_size = buf_size;
if (buf_size < s->max_framesize && pkt->data) {
*got_frame_ptr = 0;
Reported by FlawFinder.
libavcodec/ituh263dec.c
1 issues
Line: 607
Column: 5
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
cbp+=cbp;
}
s->mb_intra = mbi;
memcpy(s->block_last_index, bli, sizeof(bli));
return 0;
}
static int h263_get_modb(GetBitContext *gb, int pb_frame, int *cbpb)
{
Reported by FlawFinder.
libavcodec/jvdec.c
1 issues
Line: 217
Column: 9
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
s->frame->pict_type = AV_PICTURE_TYPE_I;
s->frame->palette_has_changed = s->palette_has_changed;
s->palette_has_changed = 0;
memcpy(s->frame->data[1], s->palette, AVPALETTE_SIZE);
if ((ret = av_frame_ref(data, s->frame)) < 0)
return ret;
*got_frame = 1;
}
Reported by FlawFinder.
libavcodec/kgv1dec.c
1 issues
Line: 129
Column: 17
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
break;
}
memcpy(out + 2 * outcnt, prev + 2 * start, 2 * count);
} else {
// copy from earlier in this frame
int offset = (code & 0x1FFF) + 1;
if (!(code & 0x6000)) {
Reported by FlawFinder.
libavcodec/libaribb24.c
1 issues
Line: 127
Column: 35
CWE codes:
126
if (!avctx->subtitle_header)
return AVERROR(ENOMEM);
avctx->subtitle_header_size = strlen(avctx->subtitle_header);
return 0;
}
static int libaribb24_init(AVCodecContext *avctx)
Reported by FlawFinder.
libavcodec/libdav1d.c
1 issues
Line: 303
Column: 17
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
return AVERROR(ENOMEM);
}
memcpy(reordered_opaque, &c->reordered_opaque, sizeof(c->reordered_opaque));
res = dav1d_data_wrap_user_data(data, reordered_opaque,
libdav1d_user_data_free, reordered_opaque);
if (res < 0) {
av_free(reordered_opaque);
dav1d_data_unref(data);
Reported by FlawFinder.
libavcodec/libdavs2.c
1 issues
Line: 120
Column: 13
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
frame->linesize[plane] = size_line;
for (line = 0; line < pic->lines[plane]; ++line)
memcpy(frame->data[plane] + line * size_line,
pic->planes[plane] + line * pic->strides[plane],
pic->widths[plane] * bytes_per_sample);
}
frame->width = cad->headerset.width;
Reported by FlawFinder.
libavcodec/libfdk-aacdec.c
1 issues
Line: 387
Column: 5
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
(AVRational){1, avctx->sample_rate},
avctx->time_base);
memcpy(frame->extended_data[0], s->decoder_buffer,
avctx->channels * avctx->frame_size *
av_get_bytes_per_sample(avctx->sample_fmt));
*got_frame_ptr = 1;
ret = avpkt->size - valid;
Reported by FlawFinder.
libavcodec/libfdk-aacenc.c
1 issues
Line: 344
Column: 9
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
goto error;
}
memcpy(avctx->extradata, info.confBuf, info.confSize);
}
return 0;
error:
aac_encode_close(avctx);
return ret;
Reported by FlawFinder.