[vlc-commits] base64 decode: stops after first invalid character

Rafaël Carré git at videolan.org
Sun Sep 30 17:03:19 CEST 2012


vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Fri Sep 14 08:51:22 2012 +0000| [c68e9688305607133ce746869fb610da50364511] | committer: Jean-Baptiste Kempf

base64 decode: stops after first invalid character
(cherry picked from commit ce6521381bc24cda9c9ac4f54ae6e0b61bbcde53)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/src/text/strings.c b/src/text/strings.c
index f11093d..5e057ca 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -528,7 +528,7 @@ size_t vlc_b64_decode_binary_to_buffer( uint8_t *p_dst, size_t i_dst, const char
     {
         const int c = b64[(unsigned int)*p];
         if( c == -1 )
-            continue;
+            break;
 
         switch( i_level )
         {



More information about the vlc-commits mailing list