projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
380da72
)
Fixed base64_decode() reject empty input buffers
author
Jouni Malinen
<j@w1.fi>
Thu, 28 Feb 2008 01:49:59 +0000
(17:49 -0800)
committer
Jouni Malinen
<j@w1.fi>
Thu, 28 Feb 2008 01:49:59 +0000
(17:49 -0800)
src/utils/base64.c
patch
|
blob
|
history
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;