projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3a9fb1
)
Fix buffer overflow in fr_pton_port
author
Nikolai Kondrashov
<Nikolai.Kondrashov@redhat.com>
Tue, 28 Feb 2017 17:39:45 +0000
(18:39 +0100)
committer
Alan T. DeKok
<aland@freeradius.org>
Tue, 28 Feb 2017 18:10:24 +0000
(13:10 -0500)
src/lib/misc.c
patch
|
blob
|
history
diff --git
a/src/lib/misc.c
b/src/lib/misc.c
index
ba3fc36
..
cbc38ea
100644
(file)
--- a/
src/lib/misc.c
+++ b/
src/lib/misc.c
@@
-626,7
+626,7
@@
do_port:
* input length indicates there are more than 5 chars
* after the ':' then there's an issue.
*/
- if (
in
len > ((q + sizeof(buffer)) - value)) {
+ if (len > ((q + sizeof(buffer)) - value)) {
error:
fr_strerror_printf("IP string contains trailing garbage after port delimiter");
return -1;