vlc | branch: master | Rafaël Carré <[email protected]> | Tue Nov 18 11:51:33 
2014 +0100| [854254cea9da55afba25183bd10b9d97b0ac6bd5] | committer: Rafaël Carré

update: fix invalid parsing

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

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

diff --git a/src/misc/update_crypto.c b/src/misc/update_crypto.c
index c935b03..f22209c 100644
--- a/src/misc/update_crypto.c
+++ b/src/misc/update_crypto.c
@@ -255,7 +255,7 @@ static size_t parse_signature_v4_packet( signature_packet_t 
*p_sig,
         }
         else
         {
-            if( p + 4 > max_pos )
+            if( ++p + 4 > max_pos )
                 return 0;
             i_subpacket_len = U32_AT(p);
             p += 4;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to