Re: [FFmpeg-devel] [PATCH 01/35] lavu/fifo: disallow overly large fifo sizes

2022-01-13 Thread Andreas Rheinhardt
Anton Khirnov: > Quoting Andreas Rheinhardt (2022-01-13 14:59:49) >> Anton Khirnov: >>> The API currently allows creating FIFOs up to >>> - UINT_MAX: av_fifo_alloc(), av_fifo_realloc(), av_fifo_grow() >>> - SIZE_MAX: av_fifo_alloc_array() >>> However the usable limit is determined by >>> -

Re: [FFmpeg-devel] [PATCH 01/35] lavu/fifo: disallow overly large fifo sizes

2022-01-13 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2022-01-13 14:59:49) > Anton Khirnov: > > The API currently allows creating FIFOs up to > > - UINT_MAX: av_fifo_alloc(), av_fifo_realloc(), av_fifo_grow() > > - SIZE_MAX: av_fifo_alloc_array() > > However the usable limit is determined by > > - rndx/wndx being uint32_t

Re: [FFmpeg-devel] [PATCH 01/35] lavu/fifo: disallow overly large fifo sizes

2022-01-13 Thread Andreas Rheinhardt
Anton Khirnov: > The API currently allows creating FIFOs up to > - UINT_MAX: av_fifo_alloc(), av_fifo_realloc(), av_fifo_grow() > - SIZE_MAX: av_fifo_alloc_array() > However the usable limit is determined by > - rndx/wndx being uint32_t > - av_fifo_[size,space] returning int > so no FIFO should be

[FFmpeg-devel] [PATCH 01/35] lavu/fifo: disallow overly large fifo sizes

2022-01-11 Thread Anton Khirnov
The API currently allows creating FIFOs up to - UINT_MAX: av_fifo_alloc(), av_fifo_realloc(), av_fifo_grow() - SIZE_MAX: av_fifo_alloc_array() However the usable limit is determined by - rndx/wndx being uint32_t - av_fifo_[size,space] returning int so no FIFO should be larger than the smallest of