]> git.sesse.net Git - vlc/commitdiff
hds: fix out of bounds access (cid #1224531)
authorTristan Matthews <le.businessman@gmail.com>
Fri, 1 Aug 2014 04:00:30 +0000 (00:00 -0400)
committerTristan Matthews <le.businessman@gmail.com>
Fri, 1 Aug 2014 04:00:30 +0000 (00:00 -0400)
modules/stream_filter/hds/hds.c

index a8e6c89e93612691736b4c29ec3560901b7ee5a3..2c0750afdb73468c91105f0a58ac36749f30a418 100644 (file)
@@ -618,7 +618,7 @@ static void whitespace_substr( char** start,
         return;
 
     while( is_whitespace(*(*end - 1) ) ) {
-        end--;
+        (*end)--;
     }
 }