[vlc-commits] input/es_out: fix potential signed integer-overflow

Filip Roséen git at videolan.org
Tue Jan 10 15:31:25 CET 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Tue Jan 10 13:52:40 2017 +0100| [96fd5b53a8511be84811bce8c2b16af93f59f7cc] | committer: Thomas Guillem

input/es_out: fix potential signed integer-overflow

The second argument to ES_OUT_SET_EPG_TIME is documented as int64_t,
as such there is nothing that guarantees that the value will fit
inside an int.

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 src/input/es_out.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 1eed2b2..de9a883 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2523,7 +2523,7 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
     }
     case ES_OUT_SET_EPG_TIME:
     {
-        int i64 = va_arg( args, int64_t );
+        int64_t i64 = va_arg( args, int64_t );
 
         EsOutEpgTime( out, i64 );
         return VLC_SUCCESS;



More information about the vlc-commits mailing list