projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix off-by-one error that caused uninitialized memory read in floatscan
[musl]
/
src
/
network
/
inet_pton.c
diff --git
a/src/network/inet_pton.c
b/src/network/inet_pton.c
index
5affb08
..
bb16fb9
100644
(file)
--- a/
src/network/inet_pton.c
+++ b/
src/network/inet_pton.c
@@
-36,10
+36,7
@@
int inet_pton(int af, const char *s, void *a0)
return -1;
}
- if (s[0]==':' && s[1]==':') {
- s+=2;
- brk=0;
- }
+ if (s[0]==':' && s[1]==':') s++;
for (i=0; ; i++, s+=j+1) {
if (s[0]==':' && brk<0) {