[LTP] [PATCH 0/3] Fix various minor bugs in core library
Andrea Cervesato
andrea.cervesato@suse.de
Tue Oct 6 15:02:36 CEST 2026
This series fixes three small bugs discovered in the LTP core library:
1. tst_timer_test: Check array bounds before accessing samples array in
do_timer_test(), avoiding heap out-of-bounds reads when all samples
are outliers or early wakeups.
2. tst_memutils: Use proper half-open interval overlap check in
tst_mapping_in_range(), correctly identifying enclosed mappings and
avoiding false positives on adjacent mappings.
3. tst_kconfig: Stop scanning at string termination in
kconfig_parse_line(), avoiding stack buffer overreads when config
lines do not end with whitespace.
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Andrea Cervesato (3):
tst_timer_test: Fix out-of-bounds array access
tst_memutils: Fix mapping overlap predicate
tst_kconfig: Prevent stack buffer overread
lib/tst_kconfig.c | 2 +-
lib/tst_memutils.c | 6 +-----
lib/tst_timer_test.c | 5 +++--
3 files changed, 5 insertions(+), 8 deletions(-)
---
base-commit: 78e6353fdff663b2fc2f77704ceec6c3ca786b96
change-id: 20261006-fix_simple_bugs_core_lib-2c7d8af4a72d
Best regards,
--
Andrea Cervesato <andrea.cervesato@suse.com>
More information about the ltp
mailing list