parse/ip: fix potential oob write in ipv4 validation

Found using AFL.
pull/3824/head
Victor Julien 6 years ago
parent 8be4142aaf
commit 666bb1b6e4

@ -53,7 +53,7 @@ bool IPv4AddressStringIsValid(const char *str)
dots++;
alen = 0;
} else {
if (alen >= 4) {
if (alen >= 3) {
SCLogDebug("too long");
return false;
}

Loading…
Cancel
Save