aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/lls.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-01-03 13:09:33 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-07 00:29:05 +0100
commit5939c8d3616a559fb5994e570c96e1a0ecad528b (patch)
treeaf18c3ae0891b0bc6a0719fd29d65dadb68f2920 /libavutil/lls.c
parent2d71f93c7c0e4c624df3fd53ba162135b0cbe32a (diff)
downloadffmpeg-5939c8d3616a559fb5994e570c96e1a0ecad528b.tar.gz
lavu/fifo: disallow overly large fifo sizes
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 - INT_MAX - UINT32_MAX - SIZE_MAX (which should be INT_MAX an all commonly used platforms). Return an error on trying to allocate FIFOs larger than this limit.
Diffstat (limited to 'libavutil/lls.c')
0 files changed, 0 insertions, 0 deletions