2 Commits
Author SHA1 Message Date
Rikus WesselsandGitHub 90bc71076f Merge 97edb33210 into 987bc8aac2 2025-09-03 11:12:03 +02:00
Rikus Wessels 97edb33210 Fix possible sscanf buffer overflow 2025-08-09 01:04:20 +02:00
+1 -1
View File
@@ -547,7 +547,7 @@ int main(int argc, char **argv)
break;
}
if (sscanf(buf, "(%llu.%llu) %s %s", &sec, &usec, device, afrbuf) != 4) {
if (sscanf(buf, "(%llu.%llu) %21s %6299s", &sec, &usec, device, afrbuf) != 4) {
fprintf(stderr, "incorrect line format in logfile\n");
return 1;
}