Fix various minor bugs in core library
Get series with b4
b4 am [email protected] change-id 20261006-fix_simple_bugs_core_lib-2c7d8af4a72dVersions newest first
- v1 Latest3 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tst_timer_test: Fix out-of-bounds array accesslib/ | +3 | 3 replies | |
| 2/3 | tst_memutils: Fix mapping overlap predicatelib/ | +1 | 1 reply | |
| 3/3 | tst_kconfig: Prevent stack buffer overreadlib/ | +1 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Li Wang |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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