[vlc-devel] [PATCH] base64 decode: stops after first invalid character
Rafaël Carré
funman at videolan.org
Fri Sep 14 11:51:22 CEST 2012
---
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 )
{
--
1.7.9.5
More information about the vlc-devel
mailing list