summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-19 08:15:21 +0200
committerPaul Buetow <paul@buetow.org>2026-03-19 08:15:21 +0200
commitc3c2cd8b7cad5119440d026dc1eb68bd52783745 (patch)
tree2c21f4ad9eec64bcab1b89453515cd4b1c43edcd
parent0864de615c9dfae488e20dc10526ce7d410c9b0c (diff)
fix: validate replay line count overflow (task 472)
-rw-r--r--ioriot/src/replay/replay.c2
1 files changed, 1 insertions, 1 deletions
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);