[FFmpeg-cvslog] mov: fix global unicode convertion array overflow.

Michael Niedermayer git at videolan.org
Sun May 6 01:43:49 CEST 2012


ffmpeg | branch: release/0.10 | Michael Niedermayer <michaelni at gmx.at> | Fri Mar 23 01:09:04 2012 +0100| [fe8508b948d045fbc02b2d81c305d9b445953be4] | committer: Michael Niedermayer

mov: fix global unicode convertion array overflow.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 437f5daf0bf727a53ea4b485a30f1289f44bf252)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe8508b948d045fbc02b2d81c305d9b445953be4
---

 libavformat/mov.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 95bc3de..59922d1 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -160,7 +160,7 @@ static int mov_read_mac_string(MOVContext *c, AVIOContext *pb, int len,
         uint8_t t, c = avio_r8(pb);
         if (c < 0x80 && p < end)
             *p++ = c;
-        else
+        else if (p < end)
             PUT_UTF8(mac_to_unicode[c-0x80], t, if (p < end) *p++ = t;);
     }
     *p = 0;



More information about the ffmpeg-cvslog mailing list