From c3c2cd8b7cad5119440d026dc1eb68bd52783745 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 19 Mar 2026 08:15:21 +0200 Subject: fix: validate replay line count overflow (task 472) --- ioriot/src/replay/replay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ioriot/src/replay/replay.c b/ioriot/src/replay/replay.c index c7ea7e4..332d528 100644 --- a/ioriot/src/replay/replay.c +++ b/ioriot/src/replay/replay.c @@ -69,7 +69,7 @@ void replay_extract_header(options_s *opts, FILE *replay_fd, long *num_vsizes, } if (meta_read_l(m, "num_lines", num_lines)) { - if (*num_fds < 0) { + if (*num_lines < 0) { Error("Overflow (too many lines in .replay)"); } Put("Setting num of lines to '%ld'", *num_lines); -- cgit v1.2.3