Hi, and another buffer overflow ... Oh, it's untested, BTW ... Florian diff --git a/udev/udev-rules.c b/udev/udev-rules.c index ee009b1..54a54c3 100644 --- a/udev/udev-rules.c +++ b/udev/udev-rules.c @@ -1598,6 +1598,8 @@ static int parse_file(struct udev_rules *rules, const char *filename, unsigned s if (fgets(&line[len-2], (sizeof(line)-len)+2, f) == NULL) break; line_nr++; + if(strlen(line+len-2)<2) + break; len = strlen(line); } -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html