aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmadec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-12-05 11:14:51 +0100
committerMartin Storsjö <martin@martin.st>2016-12-15 15:45:59 +0200
commita4fec9a7eab842ea5eea1b1ee98624356cb31422 (patch)
tree86ebc265fa54d54887e475a0cb1799a1340991b5 /libavcodec/wmadec.c
parentcdcfa97dc49d83b5eefd0a651db6bb0a6f98e8f2 (diff)
downloadffmpeg-a4fec9a7eab842ea5eea1b1ee98624356cb31422.tar.gz
rtmppkt: Check for packet size mismatches
When receiving fragmented packets, the first packet declares the size, and the later ones normally are small follow-on packets that don't repeat the size and the other header fields. But technically, the later fragments also can have a full header, declaring a different size than the previous packet. If the follow-on packet declares a larger size than the initial one, we could end up writing outside of the allocation. This fixes out of bounds writes. Found-by: Paul Cher <paulcher@icloud.com> Reviewed-by: Paul Cher <paulcher@icloud.com> CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/wmadec.c')
0 files changed, 0 insertions, 0 deletions