Skip to content

Fix various minor bugs in core library

Andrea Cervesato ltp 1 version In review

Get series with b4
b4 am [email protected] change-id 20261006-fix_simple_bugs_core_lib-2c7d8af4a72d

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tst_timer_test: Fix out-of-bounds array accesslib/tst_timer_test.c+3 -23 replies
2/3tst_memutils: Fix mapping overlap predicatelib/tst_memutils.c+1 -51 reply
3/3tst_kconfig: Prevent stack buffer overreadlib/tst_kconfig.c+1 -11 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLi Wang
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [LTP] [PATCH 0/3] Fix various minor bugs in core library

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.

---
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,

Signature · 5 lines
Andrea Cervesato <[email protected]>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp