]> git.sesse.net Git - ffmpeg/commit
mov: fix a possible invalid read in mov_read_mac_string()
authorAnton Khirnov <anton@khirnov.net>
Sat, 17 Dec 2016 13:17:20 +0000 (14:17 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 19 Dec 2016 07:14:59 +0000 (08:14 +0100)
commit46191a2da16f751e53d93646ae1388d421d12bee
tree6dd4e73f2e0589bc384fcfd9cc1f5a017ea1eb9e
parentcfa4eb4fba782f3f37a33be997b27a91a07053c9
mov: fix a possible invalid read in mov_read_mac_string()

When the input string is too large, so the second condition in if ()
fails, the code will erroneously execute the else branch, indexing the
mac_to_unicode table with a negative index.

CC: libav-stable@libav.org
Bug-Id: 1000
Found-By: Kamil Frankowicz
libavformat/mov.c