[vlc-commits] base64 decode: stops after first invalid character
Rafaël Carré
git at videolan.org
Thu Sep 27 19:17:38 CEST 2012
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Sep 14 08:51:22 2012 +0000| [ce6521381bc24cda9c9ac4f54ae6e0b61bbcde53] | committer: Rafaël Carré
base64 decode: stops after first invalid character
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce6521381bc24cda9c9ac4f54ae6e0b61bbcde53
---
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 cdc4590..f557726 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -415,7 +415,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