[vlc-devel] [PATCH] stream_filter/skiptags: Correctly validate APE size

Marvin Scholz epirat07 at gmail.com
Thu Mar 29 12:22:54 CEST 2018


---
 modules/stream_filter/skiptags.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_filter/skiptags.c b/modules/stream_filter/skiptags.c
index 2cf749a36c..8292025ca1 100644
--- a/modules/stream_filter/skiptags.c
+++ b/modules/stream_filter/skiptags.c
@@ -97,7 +97,7 @@ static uint_fast32_t SkipAPETag(stream_t *s)
         return 0;
 
     uint_fast32_t size = GetDWLE(peek + 12);
-    if (size > SSIZE_MAX - 32u)
+    if (size > UINT32_MAX - 32u)
         return 0; /* impossibly long tag */
 
     uint_fast32_t flags = GetDWLE(peek + 16);
-- 
2.14.3 (Apple Git-98)



More information about the vlc-devel mailing list