FF_INPUT_BUFFER_PADDING_SIZE 248 doc/examples/decoding_encoding.c uint8_t inbuf[AUDIO_INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE]; FF_INPUT_BUFFER_PADDING_SIZE 541 doc/examples/decoding_encoding.c uint8_t inbuf[INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE]; FF_INPUT_BUFFER_PADDING_SIZE 547 doc/examples/decoding_encoding.c memset(inbuf + INBUF_SIZE, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 408 doc/examples/qsvdec.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 594 ffmpeg.c ost->st->codec->extradata = av_mallocz(ost->enc_ctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 634 ffmpeg.c uint8_t *t = av_malloc(new_pkt.size + FF_INPUT_BUFFER_PADDING_SIZE); //the new should be a subset of the old so cannot overflow FF_INPUT_BUFFER_PADDING_SIZE 637 ffmpeg.c memset(t + new_pkt.size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 2647 ffmpeg.c extra_size = (uint64_t)dec_ctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 3467 ffserver.c st->codec->extradata = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 886 libavcodec/4xm.c if (data_size > UINT_MAX - cfrm->size - FF_INPUT_BUFFER_PADDING_SIZE) FF_INPUT_BUFFER_PADDING_SIZE 890 libavcodec/4xm.c cfrm->size + data_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 237 libavcodec/a64multienc.c if (!(avctx->extradata = av_mallocz(8 * 4 + FF_INPUT_BUFFER_PADDING_SIZE))) { FF_INPUT_BUFFER_PADDING_SIZE 92 libavcodec/aac_adtstoasc_bsf.c avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 37 libavcodec/aac_parser.c uint8_t u8[8 + FF_INPUT_BUFFER_PADDING_SIZE]; FF_INPUT_BUFFER_PADDING_SIZE 3122 libavcodec/aacdec.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 3256 libavcodec/aacdec.c avctx->extradata = av_malloc(esize + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 3263 libavcodec/aacdec.c memset(avctx->extradata+esize, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 738 libavcodec/aacenc.c FF_ALLOCZ_OR_GOTO(avctx, avctx->extradata, 5 + FF_INPUT_BUFFER_PADDING_SIZE, alloc_fail); FF_INPUT_BUFFER_PADDING_SIZE 169 libavcodec/ac3_parser.c uint8_t u8[8 + FF_INPUT_BUFFER_PADDING_SIZE]; FF_INPUT_BUFFER_PADDING_SIZE 238 libavcodec/ac3dec.h DECLARE_ALIGNED(32, uint8_t, input_buffer)[AC3_FRAME_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE]; ///< temp buffer to prevent overread FF_INPUT_BUFFER_PADDING_SIZE 116 libavcodec/adpcmenc.c if (!(avctx->extradata = av_malloc(32 + FF_INPUT_BUFFER_PADDING_SIZE))) FF_INPUT_BUFFER_PADDING_SIZE 534 libavcodec/alacenc.c avctx->extradata = av_mallocz(ALAC_EXTRADATA_SIZE + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 889 libavcodec/atrac3.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 71 libavcodec/avpacket.c if ((unsigned)size >= (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE) FF_INPUT_BUFFER_PADDING_SIZE 74 libavcodec/avpacket.c ret = av_buffer_realloc(buf, size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 78 libavcodec/avpacket.c memset((*buf)->data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 108 libavcodec/avpacket.c memset(pkt->data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 114 libavcodec/avpacket.c av_assert0((unsigned)pkt->size <= INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 118 libavcodec/avpacket.c INT_MAX - (pkt->size + FF_INPUT_BUFFER_PADDING_SIZE)) FF_INPUT_BUFFER_PADDING_SIZE 121 libavcodec/avpacket.c new_size = pkt->size + grow_by + FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 139 libavcodec/avpacket.c memset(pkt->data + pkt->size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 146 libavcodec/avpacket.c if (size >= INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE) FF_INPUT_BUFFER_PADDING_SIZE 149 libavcodec/avpacket.c pkt->buf = av_buffer_create(data, size + FF_INPUT_BUFFER_PADDING_SIZE, FF_INPUT_BUFFER_PADDING_SIZE 177 libavcodec/avpacket.c (unsigned)(size) + FF_INPUT_BUFFER_PADDING_SIZE) \ FF_INPUT_BUFFER_PADDING_SIZE 179 libavcodec/avpacket.c ALLOC(data, size + FF_INPUT_BUFFER_PADDING_SIZE); \ FF_INPUT_BUFFER_PADDING_SIZE 188 libavcodec/avpacket.c FF_INPUT_BUFFER_PADDING_SIZE); \ FF_INPUT_BUFFER_PADDING_SIZE 306 libavcodec/avpacket.c if ((unsigned)size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE) FF_INPUT_BUFFER_PADDING_SIZE 314 libavcodec/avpacket.c pkt->side_data[elems].data = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 346 libavcodec/avpacket.c uint64_t size= pkt->size + 8LL + FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 363 libavcodec/avpacket.c pkt->size = size - FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 372 libavcodec/avpacket.c memset(p, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 405 libavcodec/avpacket.c pkt->side_data[i].data = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 33 libavcodec/avuienc.c if (!(avctx->extradata = av_mallocz(144 + FF_INPUT_BUFFER_PADDING_SIZE))) FF_INPUT_BUFFER_PADDING_SIZE 305 libavcodec/binkaudio.c buf = av_realloc(s->packet_buffer, avpkt->size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 308 libavcodec/binkaudio.c memset(buf + avpkt->size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 275 libavcodec/cdxl.c h * w + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1241 libavcodec/cook.c + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 425 libavcodec/crystalhd.c priv->orig_extradata = av_malloc(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 104 libavcodec/dca_parser.c uint8_t hdr[12 + FF_INPUT_BUFFER_PADDING_SIZE] = { 0 }; FF_INPUT_BUFFER_PADDING_SIZE 69 libavcodec/dss_sp.c FF_INPUT_BUFFER_PADDING_SIZE]; FF_INPUT_BUFFER_PADDING_SIZE 39 libavcodec/dump_extradata_bsf.c *poutbuf= av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 44 libavcodec/dump_extradata_bsf.c memcpy((*poutbuf) + avctx->extradata_size, buf, buf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 290 libavcodec/dvdec.c LOCAL_ALIGNED_16(uint8_t, mb_bit_buffer, [80 + FF_INPUT_BUFFER_PADDING_SIZE]); /* allow some slack */ FF_INPUT_BUFFER_PADDING_SIZE 291 libavcodec/dvdec.c LOCAL_ALIGNED_16(uint8_t, vs_bit_buffer, [80 * 5 + FF_INPUT_BUFFER_PADDING_SIZE]); /* allow some slack */ FF_INPUT_BUFFER_PADDING_SIZE 315 libavcodec/eamad.c memset((uint8_t*)s->bitstream_buf + bytestream2_get_bytes_left(&gb), 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 553 libavcodec/ffv1enc.c f->avctx->extradata = av_malloc(f->avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 196 libavcodec/flicvideo.c if (buf_size < 16 || buf_size > INT_MAX - (3 * 256 + FF_INPUT_BUFFER_PADDING_SIZE)) FF_INPUT_BUFFER_PADDING_SIZE 250 libavcodec/g2meet.c src_size + FF_INPUT_BUFFER_PADDING_SIZE)) < 0) FF_INPUT_BUFFER_PADDING_SIZE 253 libavcodec/g2meet.c memset(c->buf + unesc_size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 481 libavcodec/g2meet.c + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 337 libavcodec/h264.c memset(dst + di, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 48 libavcodec/h264_mp4toannexb_bsf.c *poutbuf_size + FF_INPUT_BUFFER_PADDING_SIZE)) < 0) { FF_INPUT_BUFFER_PADDING_SIZE 162 libavcodec/h264_mp4toannexb_bsf.c ret = h264_extradata_to_annexb(ctx, avctx, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 2827 libavcodec/hevc.c length + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 2868 libavcodec/hevc.c memset(dst + di, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 352 libavcodec/hevc_filter.c stride_dst = 2*MAX_PB_SIZE + FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 353 libavcodec/hevc_filter.c dst = lc->edge_emu_buffer + stride_dst + FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 344 libavcodec/hevcdsp_template.c ptrdiff_t stride_src = (2*MAX_PB_SIZE + FF_INPUT_BUFFER_PADDING_SIZE) / sizeof(pixel); FF_INPUT_BUFFER_PADDING_SIZE 43 libavcodec/huffyuvdec.c static const unsigned char classic_shift_luma[classic_shift_luma_table_size + FF_INPUT_BUFFER_PADDING_SIZE] = { FF_INPUT_BUFFER_PADDING_SIZE 51 libavcodec/huffyuvdec.c static const unsigned char classic_shift_chroma[classic_shift_chroma_table_size + FF_INPUT_BUFFER_PADDING_SIZE] = { FF_INPUT_BUFFER_PADDING_SIZE 243 libavcodec/iff.c s->mask_buf = av_malloc((s->planesize * 32) + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 251 libavcodec/iff.c s->mask_palbuf = av_malloc((2 << s->bpp) * sizeof(uint32_t) + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 278 libavcodec/iff.c s->ham_buf = av_malloc((s->planesize * 8) + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 283 libavcodec/iff.c s->ham_palbuf = av_malloc((ham_count << !!(s->masking == MASK_HAS_MASK)) * sizeof (uint32_t) + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 369 libavcodec/iff.c s->planebuf = av_malloc(s->planesize + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1024 libavcodec/imc.c LOCAL_ALIGNED_16(uint16_t, buf16, [IMC_BLOCK_SIZE / 2 + FF_INPUT_BUFFER_PADDING_SIZE/2]); FF_INPUT_BUFFER_PADDING_SIZE 45 libavcodec/imx_dump_header_bsf.c *poutbuf = av_malloc(buf_size + 20 + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 171 libavcodec/internal.h #define FF_MAX_EXTRADATA_SIZE ((1 << 28) - FF_INPUT_BUFFER_PADDING_SIZE) FF_INPUT_BUFFER_PADDING_SIZE 134 libavcodec/lclenc.c avctx->extradata = av_mallocz(8 + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 84 libavcodec/libaacplus.c avctx->extradata = av_malloc(decoder_specific_info_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 141 libavcodec/libfaac.c avctx->extradata = av_malloc(decoder_specific_info_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 295 libavcodec/libfdk-aacenc.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 146 libavcodec/libopenh264enc.c avctx->extradata = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 272 libavcodec/libopusenc.c avctx->extradata = av_malloc(header_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 248 libavcodec/libspeexenc.c avctx->extradata = av_malloc(header_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 275 libavcodec/libstagefright.cpp FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 108 libavcodec/libvo-aacenc.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 234 libavcodec/libvorbisenc.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 202 libavcodec/libx265.c avctx->extradata = av_malloc(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 47 libavcodec/mjpega_dump_header_bsf.c *poutbuf = av_malloc(buf_size + 44 + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1882 libavcodec/mjpegdec.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1927 libavcodec/mjpegdec.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 31 libavcodec/movsub_bsf.c *poutbuf = av_malloc(*poutbuf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 49 libavcodec/movsub_bsf.c *poutbuf = av_malloc(*poutbuf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 78 libavcodec/movtextenc.c avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 74 libavcodec/mp3_header_decompress_bsf.c *poutbuf= av_malloc(frame_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 75 libavcodec/mp3_header_decompress_bsf.c memcpy(*poutbuf + frame_size - buf_size, buf, buf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1047 libavcodec/mpegvideo.c FF_INPUT_BUFFER_PADDING_SIZE > s->allocated_bitstream_buffer_size) FF_INPUT_BUFFER_PADDING_SIZE 1055 libavcodec/mpegvideo.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1723 libavcodec/mpegvideo_enc.c int pkt_size = growing_buffer ? FFMAX(s->mb_width*s->mb_height*64+10000, avctx->internal->byte_buffer_size) - FF_INPUT_BUFFER_PADDING_SIZE FF_INPUT_BUFFER_PADDING_SIZE 479 libavcodec/mss2.c av_assert0(FF_INPUT_BUFFER_PADDING_SIZE >= FF_INPUT_BUFFER_PADDING_SIZE 38 libavcodec/noise_bsf.c *poutbuf= av_malloc(buf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 42 libavcodec/noise_bsf.c memcpy(*poutbuf, buf, buf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 127 libavcodec/nuv.c + FFMAX(AV_LZO_OUTPUT_PADDING, FF_INPUT_BUFFER_PADDING_SIZE) FF_INPUT_BUFFER_PADDING_SIZE 211 libavcodec/nuv.c int outlen = c->decomp_size - FFMAX(FF_INPUT_BUFFER_PADDING_SIZE, AV_LZO_OUTPUT_PADDING); FF_INPUT_BUFFER_PADDING_SIZE 218 libavcodec/nuv.c buf_size = c->decomp_size - FFMAX(FF_INPUT_BUFFER_PADDING_SIZE, AV_LZO_OUTPUT_PADDING) - outlen; FF_INPUT_BUFFER_PADDING_SIZE 219 libavcodec/nuv.c memset(c->decomp_buf + buf_size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 820 libavcodec/nvenc.c avctx->extradata = av_mallocz(outSize + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 233 libavcodec/options.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 137 libavcodec/parser.c uint8_t dummy_buf[FF_INPUT_BUFFER_PADDING_SIZE]; FF_INPUT_BUFFER_PADDING_SIZE 207 libavcodec/parser.c *poutbuf = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 213 libavcodec/parser.c buf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 255 libavcodec/parser.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 274 libavcodec/parser.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 281 libavcodec/parser.c if (next > -FF_INPUT_BUFFER_PADDING_SIZE) FF_INPUT_BUFFER_PADDING_SIZE 283 libavcodec/parser.c next + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 146 libavcodec/pcx.c scanline = av_malloc(bytes_per_scanline + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 58 libavcodec/pnm_parser.c if (pc->index && pc->index * 2 + FF_INPUT_BUFFER_PADDING_SIZE < pc->buffer_size && buf_size > pc->index) { FF_INPUT_BUFFER_PADDING_SIZE 115 libavcodec/qsv_h264.c s->avctx_internal->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 430 libavcodec/shorten.c s->max_framesize + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 444 libavcodec/shorten.c if (s->bitstream_index + s->bitstream_size + buf_size + FF_INPUT_BUFFER_PADDING_SIZE > FF_INPUT_BUFFER_PADDING_SIZE 456 libavcodec/tiff.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 474 libavcodec/tiff.c memset(src2 + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 142 libavcodec/utils.c if (min_size > SIZE_MAX - FF_INPUT_BUFFER_PADDING_SIZE) { FF_INPUT_BUFFER_PADDING_SIZE 147 libavcodec/utils.c if (!ff_fast_malloc(p, size, min_size + FF_INPUT_BUFFER_PADDING_SIZE, 1)) FF_INPUT_BUFFER_PADDING_SIZE 148 libavcodec/utils.c memset(*p + min_size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 154 libavcodec/utils.c if (min_size > SIZE_MAX - FF_INPUT_BUFFER_PADDING_SIZE) { FF_INPUT_BUFFER_PADDING_SIZE 159 libavcodec/utils.c if (!ff_fast_malloc(p, size, min_size + FF_INPUT_BUFFER_PADDING_SIZE, 1)) FF_INPUT_BUFFER_PADDING_SIZE 160 libavcodec/utils.c memset(*p, 0, min_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1726 libavcodec/utils.c if (size < 0 || size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE) { FF_INPUT_BUFFER_PADDING_SIZE 1728 libavcodec/utils.c size, INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1935 libavcodec/utils.c ret = av_buffer_realloc(&avpkt->buf, avpkt->size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 2154 libavcodec/utils.c ret = av_buffer_realloc(&avpkt->buf, avpkt->size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 2657 libavcodec/utils.c if (inl >= INT_MAX / UTF8_MAX_BYTES - FF_INPUT_BUFFER_PADDING_SIZE) { FF_INPUT_BUFFER_PADDING_SIZE 2746 libavcodec/utils.c FFMIN(avpkt->size - tmp.size, FF_INPUT_BUFFER_PADDING_SIZE)); FF_INPUT_BUFFER_PADDING_SIZE 146 libavcodec/utvideodec.c memset(c->slice_bits + slice_size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 388 libavcodec/utvideodec.c max_slice_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 169 libavcodec/utvideoenc.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 179 libavcodec/utvideoenc.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 485 libavcodec/vc1dec.c buf2 = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 653 libavcodec/vc1dec.c buf2 = av_mallocz(buf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 682 libavcodec/vc1dec.c slices[n_slices].buf = av_mallocz(buf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 707 libavcodec/vc1dec.c slices[n_slices].buf = av_mallocz(buf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 736 libavcodec/vc1dec.c slices[n_slices].buf = av_mallocz(buf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 302 libavcodec/wavpack.c if (left_bits + 8 * FF_INPUT_BUFFER_PADDING_SIZE < max_bits) FF_INPUT_BUFFER_PADDING_SIZE 123 libavcodec/wma.h uint8_t last_superframe[MAX_CODED_SUPERFRAME_SIZE + FF_INPUT_BUFFER_PADDING_SIZE]; /* padding added */ FF_INPUT_BUFFER_PADDING_SIZE 857 libavcodec/wmadec.c memset(q, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 896 libavcodec/wmadec.c memset(q, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 75 libavcodec/wmalosslessdec.c uint8_t frame_data[MAX_FRAMESIZE + FF_INPUT_BUFFER_PADDING_SIZE]; ///< compressed frame data FF_INPUT_BUFFER_PADDING_SIZE 176 libavcodec/wmaprodec.c FF_INPUT_BUFFER_PADDING_SIZE];///< compressed frame data FF_INPUT_BUFFER_PADDING_SIZE 206 libavcodec/wmavoice.c uint8_t sframe_cache[SFRAME_CACHE_MAXSIZE + FF_INPUT_BUFFER_PADDING_SIZE]; FF_INPUT_BUFFER_PADDING_SIZE 65 libavcodec/wmv2enc.c avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 76 libavcodec/wnv1.c rbuf = av_malloc(buf_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 81 libavcodec/wnv1.c memset(rbuf + buf_size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 891 libavdevice/dshow.c codec->extradata = av_malloc(9 + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 392 libavdevice/vfwcap.c codec->extradata = av_malloc(9 + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 221 libavdevice/xcbgrab.c int size = c->frame_size + FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 114 libavformat/4xm.c st->codec->extradata = av_mallocz(4 + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 136 libavformat/anm.c st->codec->extradata = av_mallocz(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 58 libavformat/apetag.c if (size > INT32_MAX - FF_INPUT_BUFFER_PADDING_SIZE) { FF_INPUT_BUFFER_PADDING_SIZE 135 libavformat/apngdec.c new_extradata = av_realloc(s->extradata, new_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 181 libavformat/apngdec.c st->codec->extradata = av_malloc(len + 12 + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 477 libavformat/asfdec.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1322 libavformat/asfdec.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1327 libavformat/asfdec.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 183 libavformat/avc.c out = av_mallocz(out_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 799 libavformat/avidec.c FF_INPUT_BUFFER_PADDING_SIZE)) < 0) { FF_INPUT_BUFFER_PADDING_SIZE 1111 libavformat/aviobuf.c static const char padbuf[FF_INPUT_BUFFER_PADDING_SIZE] = {0}; FF_INPUT_BUFFER_PADDING_SIZE 1122 libavformat/aviobuf.c padding = FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 104 libavformat/cafdec.c if (size < 0 || size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE) FF_INPUT_BUFFER_PADDING_SIZE 37 libavformat/dtsdec.c uint8_t hdr[12 + FF_INPUT_BUFFER_PADDING_SIZE] = { 0 }; FF_INPUT_BUFFER_PADDING_SIZE 111 libavformat/flac_picture.c if (!(data = av_buffer_alloc(len + FF_INPUT_BUFFER_PADDING_SIZE))) { FF_INPUT_BUFFER_PADDING_SIZE 114 libavformat/flac_picture.c memset(data->data + len, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 61 libavformat/flacdec.c buffer = av_mallocz(metadata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 647 libavformat/flvdec.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 753 libavformat/hls.c if (size != apic->buf->size - FF_INPUT_BUFFER_PADDING_SIZE) FF_INPUT_BUFFER_PADDING_SIZE 601 libavformat/id3v2.c apic->buf = av_buffer_alloc(taglen + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 604 libavformat/id3v2.c memset(apic->buf->data + taglen, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1091 libavformat/id3v2.c st->attached_pic.size = apic->buf->size - FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 458 libavformat/iff.c st->codec->extradata = av_malloc(data_size + IFF_EXTRA_VIDEO_SIZE + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 685 libavformat/iff.c st->codec->extradata = av_malloc(IFF_EXTRA_VIDEO_SIZE + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 175 libavformat/jacosubdec.c av_bprint_init(&header, 1024+FF_INPUT_BUFFER_PADDING_SIZE, 4096); FF_INPUT_BUFFER_PADDING_SIZE 199 libavformat/jvdec.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1826 libavformat/matroskadec.c extradata = av_mallocz(5 + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1839 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_ALAC && track->codec_priv.size && track->codec_priv.size < INT_MAX - 12 - FF_INPUT_BUFFER_PADDING_SIZE) { FF_INPUT_BUFFER_PADDING_SIZE 1845 libavformat/matroskadec.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1855 libavformat/matroskadec.c extradata = av_mallocz(extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1085 libavformat/mov.c uint64_t size = (uint64_t)codec->extradata_size + atom.size + 8 + FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 1092 libavformat/mov.c codec->extradata_size = size - FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 1114 libavformat/mov.c memset(buf + 8 + err, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1720 libavformat/mov.c st->codec->extradata = av_mallocz(strlen(buf) + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 2146 libavformat/mov.c buf = av_malloc(num_bytes+FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 735 libavformat/movenc.c unescaped = av_mallocz(track->vos_len + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 157 libavformat/mpc8.c if(!(buf = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE))) FF_INPUT_BUFFER_PADDING_SIZE 165 libavformat/mpc8.c memset(buf+size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 843 libavformat/mpegts.c memset(pkt->data + pkt->size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 875 libavformat/mpegts.c uint8_t buf_padded[128 + FF_INPUT_BUFFER_PADDING_SIZE]; FF_INPUT_BUFFER_PADDING_SIZE 876 libavformat/mpegts.c int buf_padded_size = FFMIN(buf_size, sizeof(buf_padded) - FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1008 libavformat/mpegts.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1159 libavformat/mpegts.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 1757 libavformat/mpegts.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 2336 libavformat/mpegts.c uint8_t packet[TS_PACKET_SIZE + FF_INPUT_BUFFER_PADDING_SIZE]; FF_INPUT_BUFFER_PADDING_SIZE 2361 libavformat/mpegts.c memset(packet + TS_PACKET_SIZE, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 114 libavformat/mxg.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 83 libavformat/oggdec.c os->buf = av_mallocz(os->bufsize + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 258 libavformat/oggdec.c os->buf = av_malloc(os->bufsize + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 280 libavformat/oggdec.c uint8_t *nb = av_malloc(os->bufsize + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 419 libavformat/oggdec.c uint8_t *nb = av_malloc((os->bufsize *= 2) + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 435 libavformat/oggdec.c memset(os->buf + os->bufpos, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 105 libavformat/oggparseogm.c av_assert0(FF_INPUT_BUFFER_PADDING_SIZE <= 52); FF_INPUT_BUFFER_PADDING_SIZE 130 libavformat/oggparsetheora.c cds + FF_INPUT_BUFFER_PADDING_SIZE)) < 0) { FF_INPUT_BUFFER_PADDING_SIZE 134 libavformat/oggparsetheora.c memset(st->codec->extradata + cds, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 245 libavformat/oggparsevorbis.c if ((err = av_reallocp(buf, offset + FF_INPUT_BUFFER_PADDING_SIZE)) < 0) FF_INPUT_BUFFER_PADDING_SIZE 89 libavformat/rdt.c char buffer[RTP_MAX_PACKET_LENGTH + FF_INPUT_BUFFER_PADDING_SIZE]; FF_INPUT_BUFFER_PADDING_SIZE 401 libavformat/rdt.c target = av_mallocz(*target_len + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 70 libavformat/redspark.c header = av_malloc(HEADER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 223 libavformat/rmdec.c if(codecdata_length + FF_INPUT_BUFFER_PADDING_SIZE <= (unsigned)codecdata_length){ FF_INPUT_BUFFER_PADDING_SIZE 253 libavformat/rmdec.c if(codecdata_length + FF_INPUT_BUFFER_PADDING_SIZE <= (unsigned)codecdata_length){ FF_INPUT_BUFFER_PADDING_SIZE 122 libavformat/rtpdec_h264.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 135 libavformat/rtpdec_h264.c packet_size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 155 libavformat/rtpdec_hevc.c FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 169 libavformat/rtpdec_hevc.c memset(codec->extradata + pos, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 100 libavformat/rtpdec_latm.c config = av_mallocz(len + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 177 libavformat/rtpdec_qt.c FF_INPUT_BUFFER_PADDING_SIZE)) < 0) { FF_INPUT_BUFFER_PADDING_SIZE 184 libavformat/rtpdec_qt.c qt->pkt.data = av_realloc(NULL, alen + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 201 libavformat/rtpdec_qt.c memset(pkt->data + pkt->size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 266 libavformat/rtpdec_xiph.c extradata_alloc = length + length/255 + 3 + FF_INPUT_BUFFER_PADDING_SIZE; FF_INPUT_BUFFER_PADDING_SIZE 528 libavformat/spdifenc.c av_fast_malloc(&ctx->buffer, &ctx->buffer_size, ctx->out_bytes + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 85 libavformat/takdec.c buffer = av_malloc(size - 3 + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 88 libavformat/takdec.c memset(buffer + size - 3, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 2856 libavformat/utils.c if (size < 0 || size >= INT32_MAX - FF_INPUT_BUFFER_PADDING_SIZE) { FF_INPUT_BUFFER_PADDING_SIZE 2861 libavformat/utils.c avctx->extradata = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 2863 libavformat/utils.c memset(avctx->extradata + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); FF_INPUT_BUFFER_PADDING_SIZE 108 libavformat/xwma.c st->codec->extradata = av_mallocz(6 + FF_INPUT_BUFFER_PADDING_SIZE);