Fix to float_trigo core dump and related enhancements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | LTP/Lite test float_trigo core dumps due to free(): invalid pointertestcases/ | +7 | 1 reply | |
| 1/3 | LTP/Lite test float_trigo core dumps due to free(): invalid pointertestcases/ | +6 | 1 reply | |
| 1/3 | LTP/Lite test float_trigo core dumps due to free(): invalid pointertestcases/ | +6 | 0 replies | |
| 2/3 | Add some checks for malloc() returning NULLtestcases/ testcases/ testcases/ +1 more | +11 | 0 replies | |
| 2/3 | Add some checks for malloc() returning NULLtestcases/ testcases/ testcases/ +1 more | +11 | 0 replies | |
| 2/3 | float: add malloc() NULL check in gen* data generator toolstestcases/ testcases/ testcases/ +1 more | +11 | 0 replies | |
| 3/3 | Replace sprintf() with more secure snprintf() variant in float teststestcases/ testcases/ testcases/ +4 more | +81 | 0 replies | |
| 3/3 | Replace sprintf() with more secure snprintf() variant in float teststestcases/ testcases/ testcases/ +4 more | +81 | 0 replies | |
| 3/3 | Replace sprintf() with more secure snprintf() variant in float teststestcases/ testcases/ testcases/ +4 more | +81 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [LTP] [PATCH 0/3] Fix to float_trigo core dump and related enhancements
Hi all,
following 3 patches fix a core dump we observed during testing. Because failed malloc() was contributing factor to it I added also some checks to malloc() return value. And since I was editing these files I spotted that they use sprintf() and I replaced it with snprintf() which is IMHO safer and can make debugging test failures easier.
I would be grateful for review.
Best regards,
Tomas D.
Tomas Dzik (3):
LTP/Lite test float_trigo core dumps due to free(): invalid pointer Add some checks for malloc() returning NULL
Replace sprintf() with more secure snprintf() variant in float tests
testcases/misc/math/float/bessel/genbessel.c | 10 +++--- .../misc/math/float/exp_log/genexp_log.c | 24 +++++++++---- testcases/misc/math/float/iperb/geniperb.c | 11 ++++-- testcases/misc/math/float/main.c | 18 +++++++--- testcases/misc/math/float/power/genpower.c | 21 ++++++++---- testcases/misc/math/float/thread_code.c | 34 +++++++++++++------ testcases/misc/math/float/trigo/gentrigo.c | 24 +++++++++---- 7 files changed, 99 insertions(+), 43 deletions(-)
Signature · 5 lines
2.55.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp