https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6844
Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |darkjames-ws@xxxxxxxxxxxx
--- Comment #27 from Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx> 2012-06-09 04:11:45 PDT ---
In str_to_ipaddr() 'p' can point after NUL.
for (i = 0; i < 4; i++) {
value = 0;
while (*p != '.' && *p != '\0') { <---- while-loop will terminate when *p ==
0
value = value * 10 + (*p - '0');
p++;
}
/* ... */
p++; <--- p points after NUL.
}
Lars please fix or just use inet_aton()/sscanf().
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.