From 8747398985bfa254e6eaa7736621e152bc8f00b2 Mon Sep 17 00:00:00 2001 From: arshiya tabasum Date: Thu, 16 Jul 2026 13:07:02 +0530 Subject: [PATCH] check entry count in create_norm_table fill loop --- common/convert.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/convert.cpp b/common/convert.cpp index 6a126452..7f5b7d35 100644 --- a/common/convert.cpp +++ b/common/convert.cpp @@ -376,6 +376,7 @@ namespace acommon { VARARRAY(int, tally2_d, sz*4); Tally tally2(sz*4, tally2_d); T * cur = d; while (p = get_nb_line(in, buf), *p != '.') { + sanity(cur - d < size); Uni32 f = strtoul(p, (char **)&p, 16); cur->from = static_cast(f); sanity(f == cur->from);