Otherwise, we are missing checks in some paths, e.g. we might
overrun the buffer used to save the set name in callback_list()
when we strcpy() to it.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
default:
break;
}
+ } else if (attr->type == MNL_TYPE_NUL_STRING) {
+ if (!d || strlen(d) >= attr->len)
+ FAILURE("Broken kernel message: "
+ "string type attribute missing or too long!");
}
#ifdef IPSET_DEBUG
else