[vlc-commits] commit: GME: fix potential integer overflow ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Thu Nov 4 21:32:22 CET 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 28 22:00:45 2010 +0300| [830ba7c6fa4d8f0b8d146af12b0b948879be7935] | committer: Rémi Denis-Courmont 

GME: fix potential integer overflow
(cherry picked from commit de7205dc3237b3bfeeb4a8f265e357fcb317f9e1)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=830ba7c6fa4d8f0b8d146af12b0b948879be7935
---

 modules/demux/gme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/gme.c b/modules/demux/gme.c
index 77ce03a..65c151a 100644
--- a/modules/demux/gme.c
+++ b/modules/demux/gme.c
@@ -183,7 +183,7 @@ static int Control (demux_t *demux, int query, va_list args)
         case DEMUX_GET_TIME:
         {
             int64_t *v = va_arg (args, int64_t *);
-            *v = gme_tell (sys->emu) * 1000;
+            *v = gme_tell (sys->emu) * INT64_C(1000);
             return VLC_SUCCESS;
         }
 



More information about the vlc-commits mailing list