[vlc-commits] commit: GME: fix potential integer overflow ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Thu Oct 28 21:00:58 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 28 22:00:45 2010 +0300| [de7205dc3237b3bfeeb4a8f265e357fcb317f9e1] | committer: Rémi Denis-Courmont
GME: fix potential integer overflow
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=de7205dc3237b3bfeeb4a8f265e357fcb317f9e1
---
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