[vlc-commits] Skins2: avoid integer overflow

Jean-Baptiste Kempf git at videolan.org
Sat Nov 15 00:16:53 CET 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Nov 15 00:15:13 2014 +0100| [2c940ab8b69bf14788d6c48d6fcff4016488d0a0] | committer: Jean-Baptiste Kempf

Skins2: avoid integer overflow

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c940ab8b69bf14788d6c48d6fcff4016488d0a0
---

 modules/gui/skins2/x11/x11_timer.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/skins2/x11/x11_timer.cpp b/modules/gui/skins2/x11/x11_timer.cpp
index 6f640c5..644eb7f 100644
--- a/modules/gui/skins2/x11/x11_timer.cpp
+++ b/modules/gui/skins2/x11/x11_timer.cpp
@@ -49,7 +49,7 @@ X11Timer::~X11Timer()
 
 void X11Timer::start( int delay, bool oneShot )
 {
-    m_interval = 1000 * delay;
+    m_interval = 1000LL * (mtime_t)delay;
     m_oneShot = oneShot;
     m_nextDate = mdate() + m_interval;
     m_pTimerLoop->addTimer( *this );



More information about the vlc-commits mailing list