[vlc-devel] [PATCH 7/7] input/es_out: fix potential signed integer-overflow
Filip Roséen
filip at atch.se
Tue Jan 10 13:52:40 CET 2017
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.
---
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 1eed2b256f..de9a8838d9 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;
--
2.11.0
More information about the vlc-devel
mailing list