projects
/
libeap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed base64_decode() reject empty input buffers
[libeap.git]
/
src
/
utils
/
base64.c
diff --git
a/src/utils/base64.c
b/src/utils/base64.c
index
3407949
..
0eadb81
100644
(file)
--- a/
src/utils/base64.c
+++ b/
src/utils/base64.c
@@
-115,7
+115,7
@@
unsigned char * base64_decode(const unsigned char *src, size_t len,
count++;
}
- if (count % 4)
+ if (count
== 0 || count
% 4)
return NULL;
olen = count / 4 * 3;