AV_INPUT_BUFFER_PADDING_SIZE 113 doc/examples/decode_audio.c uint8_t inbuf[AUDIO_INBUF_SIZE + AV_INPUT_BUFFER_PADDING_SIZE]; AV_INPUT_BUFFER_PADDING_SIZE 91 doc/examples/decode_video.c uint8_t inbuf[INBUF_SIZE + AV_INPUT_BUFFER_PADDING_SIZE]; AV_INPUT_BUFFER_PADDING_SIZE 110 doc/examples/decode_video.c memset(inbuf + INBUF_SIZE, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 202 doc/examples/qsvdec.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2387 fftools/ffmpeg_opt.c if (len > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE || AV_INPUT_BUFFER_PADDING_SIZE 2388 fftools/ffmpeg_opt.c !(attachment = av_malloc(len + AV_INPUT_BUFFER_PADDING_SIZE))) { AV_INPUT_BUFFER_PADDING_SIZE 2394 fftools/ffmpeg_opt.c memset(attachment + len, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 893 libavcodec/4xm.c if (data_size > UINT_MAX - cfrm->size - AV_INPUT_BUFFER_PADDING_SIZE) AV_INPUT_BUFFER_PADDING_SIZE 897 libavcodec/4xm.c cfrm->size + data_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 238 libavcodec/a64multienc.c if (!(avctx->extradata = av_mallocz(8 * 4 + AV_INPUT_BUFFER_PADDING_SIZE))) { AV_INPUT_BUFFER_PADDING_SIZE 38 libavcodec/aac_parser.c uint8_t u8[8 + AV_INPUT_BUFFER_PADDING_SIZE]; AV_INPUT_BUFFER_PADDING_SIZE 330 libavcodec/aacdec.c avctx->extradata = av_malloc(esize + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 340 libavcodec/aacdec.c memset(avctx->extradata+esize, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 199 libavcodec/ac3_parser.c uint8_t u8[8 + AV_INPUT_BUFFER_PADDING_SIZE]; AV_INPUT_BUFFER_PADDING_SIZE 249 libavcodec/ac3dec.h DECLARE_ALIGNED(32, uint8_t, input_buffer)[AC3_FRAME_BUFFER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE]; ///< temp buffer to prevent overread AV_INPUT_BUFFER_PADDING_SIZE 1026 libavcodec/adpcm.c uint8_t temp[20 + AV_INPUT_BUFFER_PADDING_SIZE] = { 0 }; AV_INPUT_BUFFER_PADDING_SIZE 125 libavcodec/adpcmenc.c if (!(avctx->extradata = av_malloc(32 + AV_INPUT_BUFFER_PADDING_SIZE))) AV_INPUT_BUFFER_PADDING_SIZE 506 libavcodec/alac.c buf_size + AV_INPUT_BUFFER_PADDING_SIZE, buf_alloc_fail); AV_INPUT_BUFFER_PADDING_SIZE 510 libavcodec/alac.c buf_size + AV_INPUT_BUFFER_PADDING_SIZE, buf_alloc_fail); AV_INPUT_BUFFER_PADDING_SIZE 539 libavcodec/alacenc.c avctx->extradata = av_mallocz(ALAC_EXTRADATA_SIZE + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 347 libavcodec/amfenc_h264.c avctx->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 282 libavcodec/amfenc_hevc.c avctx->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 186 libavcodec/arm/hevcdsp_init_neon.c ptrdiff_t stride_src = (2*MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 971 libavcodec/atrac3.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 402 libavcodec/audiotoolboxdec.c at->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 491 libavcodec/audiotoolboxdec.c at->extradata = av_mallocz(side_data_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 385 libavcodec/audiotoolboxenc.c if (!(avctx->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE))) AV_INPUT_BUFFER_PADDING_SIZE 76 libavcodec/avpacket.c if (size < 0 || size >= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) AV_INPUT_BUFFER_PADDING_SIZE 79 libavcodec/avpacket.c ret = av_buffer_realloc(buf, size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 83 libavcodec/avpacket.c memset((*buf)->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 108 libavcodec/avpacket.c memset(pkt->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 114 libavcodec/avpacket.c av_assert0((unsigned)pkt->size <= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 116 libavcodec/avpacket.c INT_MAX - (pkt->size + AV_INPUT_BUFFER_PADDING_SIZE)) AV_INPUT_BUFFER_PADDING_SIZE 119 libavcodec/avpacket.c new_size = pkt->size + grow_by + AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 150 libavcodec/avpacket.c memset(pkt->data + pkt->size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 157 libavcodec/avpacket.c if (size >= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) AV_INPUT_BUFFER_PADDING_SIZE 160 libavcodec/avpacket.c pkt->buf = av_buffer_create(data, size + AV_INPUT_BUFFER_PADDING_SIZE, AV_INPUT_BUFFER_PADDING_SIZE 185 libavcodec/avpacket.c (unsigned)(size) + AV_INPUT_BUFFER_PADDING_SIZE) \ AV_INPUT_BUFFER_PADDING_SIZE 187 libavcodec/avpacket.c ALLOC(data, size + AV_INPUT_BUFFER_PADDING_SIZE); \ AV_INPUT_BUFFER_PADDING_SIZE 196 libavcodec/avpacket.c AV_INPUT_BUFFER_PADDING_SIZE); \ AV_INPUT_BUFFER_PADDING_SIZE 338 libavcodec/avpacket.c if ((unsigned)size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) AV_INPUT_BUFFER_PADDING_SIZE 340 libavcodec/avpacket.c data = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 416 libavcodec/avpacket.c uint64_t size= pkt->size + 8LL + AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 428 libavcodec/avpacket.c pkt->size = size - AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 437 libavcodec/avpacket.c memset(p, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 475 libavcodec/avpacket.c pkt->side_data[i].data = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 33 libavcodec/avuienc.c if (!(avctx->extradata = av_mallocz(144 + AV_INPUT_BUFFER_PADDING_SIZE))) AV_INPUT_BUFFER_PADDING_SIZE 150 libavcodec/bitstream_filter.c *poutbuf = av_malloc(pkt.size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 172 libavcodec/bitstream_filter.c avctx->extradata = av_mallocz(priv->ctx->par_out->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 210 libavcodec/cbs.c av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 219 libavcodec/cbs.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 389 libavcodec/cbs.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 395 libavcodec/cbs.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 671 libavcodec/cbs.c unit->data_ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 678 libavcodec/cbs.c memset(unit->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1239 libavcodec/cbs_av1.c frag->data_ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1243 libavcodec/cbs_av1.c memset(frag->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1652 libavcodec/cbs_av1_syntax_template.c av_buffer_alloc(fh_bytes + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 353 libavcodec/cbs_h2645.c AV_INPUT_BUFFER_PADDING_SIZE); \ AV_INPUT_BUFFER_PADDING_SIZE 1411 libavcodec/cbs_h2645.c data = av_realloc(NULL, max_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1462 libavcodec/cbs_h2645.c err = av_reallocp(&data, dp + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1465 libavcodec/cbs_h2645.c memset(data + dp, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1467 libavcodec/cbs_h2645.c frag->data_ref = av_buffer_create(data, dp + AV_INPUT_BUFFER_PADDING_SIZE, AV_INPUT_BUFFER_PADDING_SIZE 205 libavcodec/cbs_jpeg.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 221 libavcodec/cbs_jpeg.c memset(data + data_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 413 libavcodec/cbs_jpeg.c frag->data_ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 454 libavcodec/cbs_jpeg.c memset(data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 397 libavcodec/cbs_mpeg2.c frag->data_ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 416 libavcodec/cbs_mpeg2.c memset(data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 74 libavcodec/cbs_mpeg2_syntax_template.c current->user_data_ref = av_buffer_allocz(k + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 192 libavcodec/cbs_mpeg2_syntax_template.c av_buffer_allocz(k + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 609 libavcodec/cbs_vp9.c ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 613 libavcodec/cbs_vp9.c memset(data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 301 libavcodec/cdxl.c h * w + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1246 libavcodec/cook.c + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 200 libavcodec/dca_parser.c uint8_t hdr[DCA_CORE_FRAME_HEADER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE] = { 0 }; AV_INPUT_BUFFER_PADDING_SIZE 1073 libavcodec/dca_xll.c if (!s->pbr_buffer && !(s->pbr_buffer = av_malloc(DCA_XLL_PBR_BUFFER_MAX + AV_INPUT_BUFFER_PADDING_SIZE))) AV_INPUT_BUFFER_PADDING_SIZE 849 libavcodec/decode.c if (inl >= INT_MAX / UTF8_MAX_BYTES - AV_INPUT_BUFFER_PADDING_SIZE) { AV_INPUT_BUFFER_PADDING_SIZE 112 libavcodec/dolby_e.h uint8_t buffer[1024 * 3 + AV_INPUT_BUFFER_PADDING_SIZE]; AV_INPUT_BUFFER_PADDING_SIZE 69 libavcodec/dss_sp.c AV_INPUT_BUFFER_PADDING_SIZE]; AV_INPUT_BUFFER_PADDING_SIZE 330 libavcodec/dvdec.c LOCAL_ALIGNED_16(uint8_t, mb_bit_buffer, [80 + AV_INPUT_BUFFER_PADDING_SIZE]); /* allow some slack */ AV_INPUT_BUFFER_PADDING_SIZE 331 libavcodec/dvdec.c LOCAL_ALIGNED_16(uint8_t, vs_bit_buffer, [80 * 5 + AV_INPUT_BUFFER_PADDING_SIZE]); /* allow some slack */ AV_INPUT_BUFFER_PADDING_SIZE 60 libavcodec/dvdsub_parser.c if ((unsigned)pc->packet_len > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { AV_INPUT_BUFFER_PADDING_SIZE 64 libavcodec/dvdsub_parser.c pc->packet = av_malloc(pc->packet_len + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1181 libavcodec/dxv.c ret = av_reallocp(&ctx->tex_data, ctx->tex_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1193 libavcodec/dxv.c ret = av_reallocp(&ctx->ctex_data, ctx->ctex_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 315 libavcodec/eamad.c memset((uint8_t*)s->bitstream_buf + bytestream2_get_bytes_left(&gb), 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 38 libavcodec/encode.c if (size < 0 || size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { AV_INPUT_BUFFER_PADDING_SIZE 40 libavcodec/encode.c size, INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 234 libavcodec/encode.c ret = av_buffer_realloc(&avpkt->buf, avpkt->size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 332 libavcodec/encode.c ret = av_buffer_realloc(&avpkt->buf, avpkt->size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 94 libavcodec/extract_extradata_bsf.c filtered_buf = av_buffer_alloc(filtered_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 98 libavcodec/extract_extradata_bsf.c memset(filtered_buf->data + filtered_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 101 libavcodec/extract_extradata_bsf.c extradata = av_malloc(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 106 libavcodec/extract_extradata_bsf.c memset(extradata + extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 189 libavcodec/extract_extradata_bsf.c filtered_buf = av_buffer_alloc(filtered_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 193 libavcodec/extract_extradata_bsf.c memset(filtered_buf->data + filtered_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 196 libavcodec/extract_extradata_bsf.c extradata = av_malloc(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 201 libavcodec/extract_extradata_bsf.c memset(extradata + extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 252 libavcodec/extract_extradata_bsf.c *data = av_malloc(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 257 libavcodec/extract_extradata_bsf.c memset(*data + extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 283 libavcodec/extract_extradata_bsf.c *data = av_malloc(*size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 288 libavcodec/extract_extradata_bsf.c memset(*data + *size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 313 libavcodec/extract_extradata_bsf.c *data = av_malloc(*size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 318 libavcodec/extract_extradata_bsf.c memset(*data + *size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 406 libavcodec/ffv1enc.c f->avctx->extradata = av_malloc(f->avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1180 libavcodec/ffv1enc.c if (maxsize > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE - 32) { AV_INPUT_BUFFER_PADDING_SIZE 1182 libavcodec/ffv1enc.c maxsize = INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE - 32; AV_INPUT_BUFFER_PADDING_SIZE 193 libavcodec/flicvideo.c if (buf_size < 16 || buf_size > INT_MAX - (3 * 256 + AV_INPUT_BUFFER_PADDING_SIZE)) AV_INPUT_BUFFER_PADDING_SIZE 301 libavcodec/g2meet.c src_size + AV_INPUT_BUFFER_PADDING_SIZE)) < 0) AV_INPUT_BUFFER_PADDING_SIZE 304 libavcodec/g2meet.c memset(c->buf + unesc_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1206 libavcodec/g2meet.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 628 libavcodec/get_bits.h if (bit_size >= INT_MAX - FFMAX(7, AV_INPUT_BUFFER_PADDING_SIZE*8) || bit_size < 0 || !buffer) { AV_INPUT_BUFFER_PADDING_SIZE 138 libavcodec/h2645_parse.c memset(dst + di, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 349 libavcodec/h2645_parse.c if (size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) AV_INPUT_BUFFER_PADDING_SIZE 351 libavcodec/h2645_parse.c size += AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 356 libavcodec/h2645_parse.c memset(rbsp->rbsp_buffer + min_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 152 libavcodec/h264_mp4toannexb_bsf.c ret = h264_extradata_to_annexb(ctx, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 272 libavcodec/h264_mp4toannexb_bsf.c if (out_size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { AV_INPUT_BUFFER_PADDING_SIZE 432 libavcodec/h264_parse.c if (buf_size / 2 >= (INT16_MAX - AV_INPUT_BUFFER_PADDING_SIZE) / 3) AV_INPUT_BUFFER_PADDING_SIZE 434 libavcodec/h264_parse.c escaped_buf_size = buf_size * 3 / 2 + AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 351 libavcodec/hevc_filter.c stride_dst = 2*MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 352 libavcodec/hevc_filter.c dst = lc->edge_emu_buffer + stride_dst + AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 70 libavcodec/hevc_mp4toannexb_bsf.c if (4 + AV_INPUT_BUFFER_PADDING_SIZE + nalu_len > SIZE_MAX - new_extradata_size) { AV_INPUT_BUFFER_PADDING_SIZE 74 libavcodec/hevc_mp4toannexb_bsf.c ret = av_reallocp(&new_extradata, new_extradata_size + nalu_len + 4 + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 81 libavcodec/hevc_mp4toannexb_bsf.c memset(new_extradata + new_extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 338 libavcodec/hevcdsp_template.c ptrdiff_t stride_src = (2*MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE) / sizeof(pixel); AV_INPUT_BUFFER_PADDING_SIZE 45 libavcodec/huffyuvdec.c static const unsigned char classic_shift_luma[classic_shift_luma_table_size + AV_INPUT_BUFFER_PADDING_SIZE] = { AV_INPUT_BUFFER_PADDING_SIZE 53 libavcodec/huffyuvdec.c static const unsigned char classic_shift_chroma[classic_shift_chroma_table_size + AV_INPUT_BUFFER_PADDING_SIZE] = { AV_INPUT_BUFFER_PADDING_SIZE 302 libavcodec/iff.c s->mask_buf = av_malloc((s->planesize * 32) + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 310 libavcodec/iff.c s->mask_palbuf = av_malloc((2 << s->bpp) * sizeof(uint32_t) + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 340 libavcodec/iff.c s->ham_buf = av_malloc((s->planesize * 8) + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 345 libavcodec/iff.c s->ham_palbuf = av_malloc(extra_space * (ham_count << !!(s->masking == MASK_HAS_MASK)) * sizeof (uint32_t) + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 435 libavcodec/iff.c s->planebuf = av_malloc(s->planesize * avctx->height + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1025 libavcodec/imc.c LOCAL_ALIGNED_16(uint16_t, buf16, [(IMC_BLOCK_SIZE + AV_INPUT_BUFFER_PADDING_SIZE) / 2]); AV_INPUT_BUFFER_PADDING_SIZE 223 libavcodec/internal.h #define FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_INPUT_BUFFER_PADDING_SIZE) AV_INPUT_BUFFER_PADDING_SIZE 80 libavcodec/interplayacm.c s->bitstream = av_calloc(s->max_framesize + AV_INPUT_BUFFER_PADDING_SIZE / sizeof(*s->bitstream) + 1, sizeof(*s->bitstream)); AV_INPUT_BUFFER_PADDING_SIZE 482 libavcodec/jpeg2000.c csize += AV_INPUT_BUFFER_PADDING_SIZE / sizeof(*comp->f_data); AV_INPUT_BUFFER_PADDING_SIZE 488 libavcodec/jpeg2000.c csize += AV_INPUT_BUFFER_PADDING_SIZE / sizeof(*comp->i_data); AV_INPUT_BUFFER_PADDING_SIZE 120 libavcodec/lclenc.c avctx->extradata = av_mallocz(8 + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 117 libavcodec/libcodec2.c avctx->extradata = av_mallocz(AVPRIV_CODEC2_EXTRADATA_SIZE + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 338 libavcodec/libfdk-aacenc.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 132 libavcodec/libkvazaar.c avctx->extradata = p = av_mallocz(len_out + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 344 libavcodec/libopenh264enc.c avctx->extradata = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 76 libavcodec/libopenjpegenc.c int max_growth = INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE - packet->size; AV_INPUT_BUFFER_PADDING_SIZE 104 libavcodec/libopenjpegenc.c int max_growth = INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE - packet->size; AV_INPUT_BUFFER_PADDING_SIZE 125 libavcodec/libopenjpegenc.c if (nb_bytes > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE || AV_INPUT_BUFFER_PADDING_SIZE 394 libavcodec/libopusenc.c avctx->extradata = av_malloc(header_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 248 libavcodec/libspeexenc.c avctx->extradata = av_malloc(header_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 234 libavcodec/libvorbisenc.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 930 libavcodec/libx264.c avctx->extradata = p = av_mallocz(s + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 395 libavcodec/libx265.c avctx->extradata = av_malloc(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 404 libavcodec/libx265.c memset(avctx->extradata + avctx->extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 204 libavcodec/magicyuvenc.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 220 libavcodec/magicyuvenc.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 145 libavcodec/mfenc.c avctx->extradata = av_mallocz(sz + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 183 libavcodec/mfenc.c uint8_t *extradata = av_mallocz(sz + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2629 libavcodec/mips/hevc_lpf_sao_msa.c ptrdiff_t stride_src = (2 * MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE) / sizeof(uint8_t); AV_INPUT_BUFFER_PADDING_SIZE 2259 libavcodec/mjpegdec.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2304 libavcodec/mjpegdec.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 342 libavcodec/movtextenc.c avctx->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 98 libavcodec/mp3_header_decompress_bsf.c memcpy(out->data + frame_size - buf_size, buf, buf_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 595 libavcodec/mpegvideo.c AV_INPUT_BUFFER_PADDING_SIZE > s->allocated_bitstream_buffer_size) { AV_INPUT_BUFFER_PADDING_SIZE 608 libavcodec/mpegvideo.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1840 libavcodec/mpegvideo_enc.c int pkt_size = growing_buffer ? FFMAX(s->mb_width*s->mb_height*64+10000, avctx->internal->byte_buffer_size) - AV_INPUT_BUFFER_PADDING_SIZE AV_INPUT_BUFFER_PADDING_SIZE 130 libavcodec/nuv.c + FFMAX(AV_LZO_OUTPUT_PADDING, AV_INPUT_BUFFER_PADDING_SIZE) AV_INPUT_BUFFER_PADDING_SIZE 238 libavcodec/nuv.c int outlen = c->decomp_size - FFMAX(AV_INPUT_BUFFER_PADDING_SIZE, AV_LZO_OUTPUT_PADDING); AV_INPUT_BUFFER_PADDING_SIZE 245 libavcodec/nuv.c buf_size = c->decomp_size - FFMAX(AV_INPUT_BUFFER_PADDING_SIZE, AV_LZO_OUTPUT_PADDING) - outlen; AV_INPUT_BUFFER_PADDING_SIZE 246 libavcodec/nuv.c memset(c->decomp_buf + buf_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1456 libavcodec/nvenc.c avctx->extradata = av_mallocz(outSize + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 686 libavcodec/omx.c if ((ret = av_reallocp(&avctx->extradata, avctx->extradata_size + buffer->nFilledLen + AV_INPUT_BUFFER_PADDING_SIZE)) < 0) { AV_INPUT_BUFFER_PADDING_SIZE 692 libavcodec/omx.c memset(avctx->extradata + avctx->extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 858 libavcodec/omx.c if ((ret = av_reallocp(&avctx->extradata, avctx->extradata_size + buffer->nFilledLen + AV_INPUT_BUFFER_PADDING_SIZE)) < 0) { AV_INPUT_BUFFER_PADDING_SIZE 864 libavcodec/omx.c memset(avctx->extradata + avctx->extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 869 libavcodec/omx.c int newsize = s->output_buf_size + buffer->nFilledLen + AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 272 libavcodec/options.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 650 libavcodec/opusenc.c avctx->extradata = av_malloc(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 126 libavcodec/parser.c uint8_t dummy_buf[AV_INPUT_BUFFER_PADDING_SIZE]; AV_INPUT_BUFFER_PADDING_SIZE 210 libavcodec/parser.c *poutbuf = av_malloc(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 216 libavcodec/parser.c buf_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 261 libavcodec/parser.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 264 libavcodec/parser.c av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", *buf_size + pc->index + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 283 libavcodec/parser.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 285 libavcodec/parser.c av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", next + pc->index + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 291 libavcodec/parser.c if (next > -AV_INPUT_BUFFER_PADDING_SIZE) AV_INPUT_BUFFER_PADDING_SIZE 293 libavcodec/parser.c next + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 154 libavcodec/pcx.c scanline = av_malloc(bytes_per_scanline + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 980 libavcodec/qsvenc.c avctx->extradata = av_malloc(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 997 libavcodec/qsvenc.c memset(avctx->extradata + avctx->extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 151 libavcodec/qsvenc_hevc.c new_extradata = av_mallocz(vps_size + avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 535 libavcodec/shorten.c s->max_framesize + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 549 libavcodec/shorten.c if (s->bitstream_index + s->bitstream_size + buf_size + AV_INPUT_BUFFER_PADDING_SIZE > AV_INPUT_BUFFER_PADDING_SIZE 585 libavcodec/shorten.c max_framesize + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1043 libavcodec/svq3.c av_fast_malloc(&s->slice_buf, &s->slice_size, slice_bytes + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 543 libavcodec/tiff.c memset(src2 + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 73 libavcodec/utils.c if (min_size > SIZE_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { AV_INPUT_BUFFER_PADDING_SIZE 78 libavcodec/utils.c if (!ff_fast_malloc(p, size, min_size + AV_INPUT_BUFFER_PADDING_SIZE, 1)) AV_INPUT_BUFFER_PADDING_SIZE 79 libavcodec/utils.c memset(*p + min_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 85 libavcodec/utils.c if (min_size > SIZE_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { AV_INPUT_BUFFER_PADDING_SIZE 90 libavcodec/utils.c if (!ff_fast_malloc(p, size, min_size + AV_INPUT_BUFFER_PADDING_SIZE, 1)) AV_INPUT_BUFFER_PADDING_SIZE 91 libavcodec/utils.c memset(*p, 0, min_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2072 libavcodec/utils.c dst->extradata = av_mallocz(src->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2129 libavcodec/utils.c par->extradata = av_mallocz(codec->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2186 libavcodec/utils.c codec->extradata = av_mallocz(par->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 192 libavcodec/utvideodec.c memset(c->slice_bits + slice_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 353 libavcodec/utvideodec.c memset(c->slice_bits + slice_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 740 libavcodec/utvideodec.c max_slice_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 175 libavcodec/utvideoenc.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 185 libavcodec/utvideoenc.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2357 libavcodec/vaapi_encode.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 478 libavcodec/vc1dec.c buf2 = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 675 libavcodec/vc1dec.c buf2 = av_mallocz(buf_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 704 libavcodec/vc1dec.c slices[n_slices].buf = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 733 libavcodec/vc1dec.c slices[n_slices].buf = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 768 libavcodec/vc1dec.c slices[n_slices].buf = av_mallocz(buf_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 545 libavcodec/videotoolboxenc.c avctx->extradata = av_mallocz(total_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 341 libavcodec/wavpack.c if (left_bits + 8 * AV_INPUT_BUFFER_PADDING_SIZE < max_bits) AV_INPUT_BUFFER_PADDING_SIZE 1047 libavcodec/webp.c line = av_malloc(img->frame->linesize[0] + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 123 libavcodec/wma.h uint8_t last_superframe[MAX_CODED_SUPERFRAME_SIZE + AV_INPUT_BUFFER_PADDING_SIZE]; /* padding added */ AV_INPUT_BUFFER_PADDING_SIZE 864 libavcodec/wmadec.c memset(q, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 903 libavcodec/wmadec.c memset(q, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 200 libavcodec/wmalosslessdec.c s->frame_data = av_mallocz(s->max_frame_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 180 libavcodec/wmaprodec.c AV_INPUT_BUFFER_PADDING_SIZE];///< compressed frame data AV_INPUT_BUFFER_PADDING_SIZE 201 libavcodec/wmavoice.c uint8_t sframe_cache[SFRAME_CACHE_MAXSIZE + AV_INPUT_BUFFER_PADDING_SIZE]; AV_INPUT_BUFFER_PADDING_SIZE 65 libavcodec/wmv2enc.c avctx->extradata = av_mallocz(avctx->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 76 libavcodec/wnv1.c rbuf = av_malloc(buf_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 81 libavcodec/wnv1.c memset(rbuf + buf_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 48 libavcodec/wrapped_avframe.c int size = sizeof(*wrapped) + AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 316 libavcodec/ylc.c boffset - toffset + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 321 libavcodec/ylc.c memset(s->table_bits + boffset - toffset, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 349 libavcodec/ylc.c avpkt->size - boffset + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 354 libavcodec/ylc.c memset(s->bitstream_bits + avpkt->size - boffset, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 113 libavdevice/decklink_dec.cpp void *buf = av_malloc(bufferSize + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1006 libavdevice/dshow.c par->extradata = av_malloc(9 + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 121 libavdevice/iec61883.c packet->buf = av_malloc(length + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 130 libavdevice/iec61883.c memset(packet->buf + length, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 402 libavdevice/vfwcap.c par->extradata = av_malloc(9 + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 590 libavdevice/xcbgrab.c if (frame_size_bits / 8 + AV_INPUT_BUFFER_PADDING_SIZE > INT_MAX) { AV_INPUT_BUFFER_PADDING_SIZE 597 libavdevice/xcbgrab.c c->shm_pool = av_buffer_pool_init2(c->frame_size + AV_INPUT_BUFFER_PADDING_SIZE, AV_INPUT_BUFFER_PADDING_SIZE 117 libavformat/4xm.c st->codecpar->extradata = av_mallocz(4 + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 328 libavformat/4xm.c if (size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE - 8) AV_INPUT_BUFFER_PADDING_SIZE 58 libavformat/apetag.c if (size > INT32_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { AV_INPUT_BUFFER_PADDING_SIZE 130 libavformat/apngdec.c if (previous_size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE - len) AV_INPUT_BUFFER_PADDING_SIZE 134 libavformat/apngdec.c new_extradata = av_realloc(par->extradata, new_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 137 libavformat/apngdec.c memset(new_extradata + new_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 106 libavformat/apngenc.c apng->extra_data = av_mallocz(par->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 130 libavformat/apngenc.c apng->extra_data = av_mallocz(side_data_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 521 libavformat/asfdec_f.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1412 libavformat/asfdec_f.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1417 libavformat/asfdec_f.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 710 libavformat/asfdec_o.c size_bmp < INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { AV_INPUT_BUFFER_PADDING_SIZE 714 libavformat/asfdec_o.c AV_INPUT_BUFFER_PADDING_SIZE))) { AV_INPUT_BUFFER_PADDING_SIZE 719 libavformat/asfdec_o.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 105 libavformat/av1.c buf = av_malloc(len + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 114 libavformat/av1.c memset(buf + len, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 240 libavformat/avc.c out = av_mallocz(out_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 275 libavformat/avc.c dst = av_malloc(src_len + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 295 libavformat/avc.c memset(dst + len, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 835 libavformat/avidec.c AV_INPUT_BUFFER_PADDING_SIZE)) < 0) { AV_INPUT_BUFFER_PADDING_SIZE 1405 libavformat/aviobuf.c static const char padbuf[AV_INPUT_BUFFER_PADDING_SIZE] = {0}; AV_INPUT_BUFFER_PADDING_SIZE 1416 libavformat/aviobuf.c padding = AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 105 libavformat/cafdec.c if (size < 0 || size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) AV_INPUT_BUFFER_PADDING_SIZE 41 libavformat/dtsdec.c uint8_t hdr[DCA_CORE_FRAME_HEADER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE] = { 0 }; AV_INPUT_BUFFER_PADDING_SIZE 123 libavformat/flac_picture.c if (len > MAX_TRUNC_PICTURE_SIZE || len >= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { AV_INPUT_BUFFER_PADDING_SIZE 145 libavformat/flac_picture.c if (!(data = av_buffer_alloc(len + AV_INPUT_BUFFER_PADDING_SIZE))) { AV_INPUT_BUFFER_PADDING_SIZE 158 libavformat/flac_picture.c memset(data->data + len, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 81 libavformat/flacdec.c buffer = av_mallocz(metadata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 816 libavformat/flvdec.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1069 libavformat/hls.c if (size != apic->buf->size - AV_INPUT_BUFFER_PADDING_SIZE) AV_INPUT_BUFFER_PADDING_SIZE 648 libavformat/id3v2.c apic->buf = av_buffer_alloc(taglen + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 651 libavformat/id3v2.c memset(apic->buf->data + taglen, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1160 libavformat/id3v2.c st->attached_pic.size = apic->buf->size - AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 176 libavformat/jacosubdec.c av_bprint_init(&header, 1024+AV_INPUT_BUFFER_PADDING_SIZE, 4096); AV_INPUT_BUFFER_PADDING_SIZE 202 libavformat/jvdec.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1006 libavformat/matroskadec.c ret = av_buffer_realloc(&bin->buf, length + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1009 libavformat/matroskadec.c memset(bin->buf->data + length, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1611 libavformat/matroskadec.c pkt_data = av_malloc(pkt_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1625 libavformat/matroskadec.c + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1650 libavformat/matroskadec.c newpktdata = av_realloc(pkt_data, pkt_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1683 libavformat/matroskadec.c newpktdata = av_realloc(pkt_data, pkt_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1710 libavformat/matroskadec.c memset(pkt_data + pkt_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2274 libavformat/matroskadec.c track->codec_priv.size + 4 + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2404 libavformat/matroskadec.c track->codec_priv.size + AV_INPUT_BUFFER_PADDING_SIZE, AV_INPUT_BUFFER_PADDING_SIZE 2541 libavformat/matroskadec.c extradata = av_mallocz(5 + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2554 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_ALAC && track->codec_priv.size && track->codec_priv.size < INT_MAX - 12 - AV_INPUT_BUFFER_PADDING_SIZE) { AV_INPUT_BUFFER_PADDING_SIZE 2560 libavformat/matroskadec.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2584 libavformat/matroskadec.c extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2657 libavformat/matroskadec.c extradata = av_mallocz(2 + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 3245 libavformat/matroskadec.c tmp = av_realloc(dst, dstlen + blocksize + 32 + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 3269 libavformat/matroskadec.c memset(dst + dstlen, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 3287 libavformat/matroskadec.c dst = av_malloc(dstlen + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 3294 libavformat/matroskadec.c memset(dst + dstlen, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 3459 libavformat/matroskadec.c pkt->buf = av_buffer_create(pkt_data, pkt_size + AV_INPUT_BUFFER_PADDING_SIZE, AV_INPUT_BUFFER_PADDING_SIZE 869 libavformat/mov.c buf = av_malloc(ddts_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1650 libavformat/mov.c uint64_t size = (uint64_t)par->extradata_size + atom.size + 8 + AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 1657 libavformat/mov.c par->extradata_size = size - AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 1679 libavformat/mov.c memset(buf + 8 + err, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1875 libavformat/mov.c st->codecpar->extradata = av_mallocz(ALAC_EXTRADATA_SIZE + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2553 libavformat/mov.c sc->extradata[pseudo_stream_id] = av_malloc(extra_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2617 libavformat/mov.c st->codecpar->extradata = av_mallocz(sc->extradata_size[0] + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2870 libavformat/mov.c buf = av_malloc(num_bytes+AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 895 libavformat/movenc.c unescaped = av_mallocz(track->vos_len + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 5498 libavformat/movenc.c trk->vos_data = av_malloc(trk->vos_len + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 5504 libavformat/movenc.c memset(trk->vos_data + trk->vos_len, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 5515 libavformat/movenc.c trk->vos_data = av_malloc(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 5521 libavformat/movenc.c memset(trk->vos_data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 5774 libavformat/movenc.c void *newextra = av_mallocz(side_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 6233 libavformat/movenc.c track->vos_data = av_malloc(16*4 + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 6239 libavformat/movenc.c memset(track->vos_data + 16*4, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 6616 libavformat/movenc.c track->vos_data = av_malloc(track->vos_len + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 6621 libavformat/movenc.c memset(track->vos_data + track->vos_len, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 6876 libavformat/movenc.c track->vos_data = av_malloc(track->vos_len + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 6880 libavformat/movenc.c memset(track->vos_data + track->vos_len, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 157 libavformat/mpc8.c if(!(buf = av_malloc(size + AV_INPUT_BUFFER_PADDING_SIZE))) AV_INPUT_BUFFER_PADDING_SIZE 165 libavformat/mpc8.c memset(buf+size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 768 libavformat/mpeg.c av_bprint_init(&header, 0, INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1002 libavformat/mpegts.c memset(pkt->data + pkt->size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1041 libavformat/mpegts.c uint8_t buf_padded[128 + AV_INPUT_BUFFER_PADDING_SIZE]; AV_INPUT_BUFFER_PADDING_SIZE 1042 libavformat/mpegts.c int buf_padded_size = FFMIN(buf_size, sizeof(buf_padded) - AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1106 libavformat/mpegts.c int index = av_log2(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1108 libavformat/mpegts.c int pool_size = FFMIN(MAX_PES_PAYLOAD + AV_INPUT_BUFFER_PADDING_SIZE, 2 << index); AV_INPUT_BUFFER_PADDING_SIZE 2013 libavformat/mpegts.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 2918 libavformat/mpegts.c uint8_t packet[TS_PACKET_SIZE + AV_INPUT_BUFFER_PADDING_SIZE]; AV_INPUT_BUFFER_PADDING_SIZE 2945 libavformat/mpegts.c memset(packet + TS_PACKET_SIZE, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 1346 libavformat/mux.c size_t bufsize = sizeof(frame) + AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 114 libavformat/mxg.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 101 libavformat/oggdec.c os->buf = av_mallocz(os->bufsize + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 271 libavformat/oggdec.c os->buf = av_malloc(os->bufsize + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 304 libavformat/oggdec.c uint8_t *nb = av_realloc(os->buf, 2*os->bufsize + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 465 libavformat/oggdec.c memset(os->buf + os->bufpos, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 130 libavformat/oggparsetheora.c cds + AV_INPUT_BUFFER_PADDING_SIZE)) < 0) { AV_INPUT_BUFFER_PADDING_SIZE 134 libavformat/oggparsetheora.c memset(st->codecpar->extradata + cds, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 249 libavformat/oggparsevorbis.c if ((err = av_reallocp(buf, offset + AV_INPUT_BUFFER_PADDING_SIZE)) < 0) AV_INPUT_BUFFER_PADDING_SIZE 89 libavformat/rdt.c char buffer[RTP_MAX_PACKET_LENGTH + AV_INPUT_BUFFER_PADDING_SIZE]; AV_INPUT_BUFFER_PADDING_SIZE 401 libavformat/rdt.c target = av_mallocz(*target_len + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 219 libavformat/rmdec.c if(codecdata_length + AV_INPUT_BUFFER_PADDING_SIZE <= (unsigned)codecdata_length){ AV_INPUT_BUFFER_PADDING_SIZE 250 libavformat/rmdec.c if(codecdata_length + AV_INPUT_BUFFER_PADDING_SIZE <= (unsigned)codecdata_length){ AV_INPUT_BUFFER_PADDING_SIZE 122 libavformat/rtpdec_h264.c AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 135 libavformat/rtpdec_h264.c packet_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 100 libavformat/rtpdec_latm.c config = av_mallocz(len + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 177 libavformat/rtpdec_qt.c AV_INPUT_BUFFER_PADDING_SIZE)) < 0) { AV_INPUT_BUFFER_PADDING_SIZE 184 libavformat/rtpdec_qt.c qt->pkt.data = av_realloc(NULL, alen + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 201 libavformat/rtpdec_qt.c memset(pkt->data + pkt->size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 266 libavformat/rtpdec_xiph.c extradata_alloc = length + length/255 + 3 + AV_INPUT_BUFFER_PADDING_SIZE; AV_INPUT_BUFFER_PADDING_SIZE 36 libavformat/shortendec.c if (init_get_bits8(&gb, p->buf + 5, p->buf_size - 5 - AV_INPUT_BUFFER_PADDING_SIZE) < 0) AV_INPUT_BUFFER_PADDING_SIZE 655 libavformat/spdifenc.c av_fast_malloc(&ctx->buffer, &ctx->buffer_size, ctx->out_bytes + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 92 libavformat/takdec.c buffer = av_malloc(size - 3 + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 95 libavformat/takdec.c memset(buffer + size - 3, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 204 libavformat/tests/movenc.c st->codecpar->extradata = av_mallocz(st->codecpar->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 220 libavformat/tests/movenc.c st->codecpar->extradata = av_mallocz(st->codecpar->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 3326 libavformat/utils.c if (size < 0 || size >= INT32_MAX - AV_INPUT_BUFFER_PADDING_SIZE) AV_INPUT_BUFFER_PADDING_SIZE 3329 libavformat/utils.c par->extradata = av_malloc(size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 3333 libavformat/utils.c memset(par->extradata + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 3586 libavformat/utils.c sti->avctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 5635 libavformat/utils.c uint8_t *t = av_malloc(new_pkt.size + AV_INPUT_BUFFER_PADDING_SIZE); //the new should be a subset of the old so cannot overflow AV_INPUT_BUFFER_PADDING_SIZE 5638 libavformat/utils.c memset(t + new_pkt.size, 0, AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 139 tests/api/api-h264-slice-test.c nal = av_malloc(MAX_SLICES * UINT16_MAX + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 211 tests/api/api-h264-slice-test.c memset(nal, 0, MAX_SLICES * UINT16_MAX + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 29 tests/checkasm/exrdsp.c #define PADDED_BUF_SIZE BUF_SIZE+AV_INPUT_BUFFER_PADDING_SIZE*2 AV_INPUT_BUFFER_PADDING_SIZE 35 tests/checkasm/hevc_sao.c #define PIXEL_STRIDE (2*MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE) //same with sao_edge src_stride AV_INPUT_BUFFER_PADDING_SIZE 112 tests/checkasm/hevc_sao.c int offset = (AV_INPUT_BUFFER_PADDING_SIZE + PIXEL_STRIDE)*SIZEOF_PIXEL; AV_INPUT_BUFFER_PADDING_SIZE 91 tools/target_bsf_fuzzer.c bsf->par_in->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); AV_INPUT_BUFFER_PADDING_SIZE 253 tools/target_dec_fuzzer.c ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);