Commit e912df7e authored by Rafaël Carré's avatar 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: default avatarRafaël Carré <funman@videolan.org>
parent a38fc7e1
...@@ -392,10 +392,7 @@ static int pgp_unarmor( char *p_ibuf, size_t i_ibuf_len, ...@@ -392,10 +392,7 @@ static int pgp_unarmor( char *p_ibuf, size_t i_ibuf_len,
if( p_ipos[i_line_len - 1] == '=' ) if( p_ipos[i_line_len - 1] == '=' )
{ {
i_end = 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_opos += vlc_b64_decode_binary_to_buffer( p_opos,
p_obuf - p_opos + i_obuf_len, p_ipos ); p_obuf - p_opos + i_obuf_len, p_ipos );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment