diff options
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udev-rules.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c index 4d9fa70ae5..da08bc11f6 100644 --- a/udev/udev-rules.c +++ b/udev/udev-rules.c @@ -1599,6 +1599,8 @@ static int parse_file(struct udev_rules *rules, const char *filename, unsigned s while (line[len-2] == '\\') { if (fgets(&line[len-2], (sizeof(line)-len)+2, f) == NULL) break; + if (strlen(&line[len-2]) < 2) + break; line_nr++; len = strlen(line); } |