summaryrefslogtreecommitdiffstats
path: root/demux/demux_lavf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-29 17:01:42 +0100
committerwm4 <wm4@nowhere>2014-01-31 19:07:47 +0100
commit0801345d68a37ea9bbe1d77fd13c3cacce37723c (patch)
treec5a61bbdb92efec516b859a0a373b25519ebbe9f /demux/demux_lavf.c
parent5bd0fe5daf8ec20d309f3538bbf4da0735ba3879 (diff)
downloadmpv-0801345d68a37ea9bbe1d77fd13c3cacce37723c.tar.bz2
mpv-0801345d68a37ea9bbe1d77fd13c3cacce37723c.tar.xz
mp_image: reject too large image sizes
Larger sizes can introduce overflows, depending on the image format. In the worst case, something larger than 16000x16000 with 8 bytes per pixel will overflow 31 bits. Maybe there should be a proper failure path instead of a hard crash, but not yet. I imagine anything that sets a higher image size than a known working size should be forced to call a function to check the size (much like in ffmpeg/libavutil).
Diffstat (limited to 'demux/demux_lavf.c')
0 files changed, 0 insertions, 0 deletions