[vlc-commits] update: do not modify base64 input to add \0 terminators

Rafaël Carré git at videolan.org
Mon Apr 8 01:37:42 CEST 2013


vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Mon Oct  1 16:16:45 2012 +0200| [e912df7e83d9798524fbb8d6f0afd904a2da2ef0] | committer: Rafaël Carré

update: do not modify base64 input to add \0 terminators

It is not needed anymore since ce6521381b , parsing will
stop at first unrecognized character (like \r or \n)
(cherry picked from commit 6841a105dad5bf416fe7e1b906bf4abdce21fbe9)

Signed-off-by: Rafaël Carré <funman at videolan.org>

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

 src/misc/update_crypto.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/misc/update_crypto.c b/src/misc/update_crypto.c
index 550bdc8..b7d5094 100644
--- a/src/misc/update_crypto.c
+++ b/src/misc/update_crypto.c
@@ -392,10 +392,7 @@ static int pgp_unarmor( char *p_ibuf, size_t i_ibuf_len,
         if( p_ipos[i_line_len - 1] == '=' )
         {
             i_end = 1;
-            p_ipos[i_line_len - 1] = '\0';
         }
-        else
-            p_ipos[i_line_len] = '\0';
 
         p_opos += vlc_b64_decode_binary_to_buffer(  p_opos,
                         p_obuf - p_opos + i_obuf_len, p_ipos );



More information about the vlc-commits mailing list