[vlc-commits] update: fix invalid parsing

Rafaël Carré git at videolan.org
Tue Nov 18 11:52:01 CET 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | 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;



More information about the vlc-commits mailing list