2 Commits
Author SHA1 Message Date
Rikus WesselsandGitHub 0e2baab303 Merge 97edb33210 into 6b46063eee 2025-08-08 23:05:37 +00:00
Rikus Wessels 97edb33210 Fix possible sscanf buffer overflow 2025-08-09 01:04:20 +02:00
+1 -1
View File
@@ -541,7 +541,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;
}