[vlc-commits] update: use U32_AT

Rémi Denis-Courmont git at videolan.org
Mon Nov 17 18:08:21 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 17 19:08:10 2014 +0200| [3d9656b6cf4c629c8031125f869ce3b5a1f48e2d] | committer: Rémi Denis-Courmont

update: use U32_AT

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

 src/misc/update_crypto.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/misc/update_crypto.c b/src/misc/update_crypto.c
index 417b3ec..c935b03 100644
--- a/src/misc/update_crypto.c
+++ b/src/misc/update_crypto.c
@@ -257,10 +257,8 @@ static size_t parse_signature_v4_packet( signature_packet_t *p_sig,
         {
             if( p + 4 > max_pos )
                 return 0;
-            i_subpacket_len = *++p << 24;
-            i_subpacket_len += *++p << 16;
-            i_subpacket_len += *++p << 8;
-            i_subpacket_len += *++p;
+            i_subpacket_len = U32_AT(p);
+            p += 4;
         }
 
         if( *p == ISSUER_SUBPACKET )



More information about the vlc-commits mailing list