public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v3 0/3] Add handling of abnormal input for parse_opts()
@ 2022-12-05  6:54 Zhao Gongyi via ltp
  2022-12-05  6:54 ` [LTP] [PATCH v3 1/3] lib/safe_macros: Add SAFE_STRTOF Zhao Gongyi via ltp
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Zhao Gongyi via ltp @ 2022-12-05  6:54 UTC (permalink / raw)
  To: ltp

Changes in v3:
  1. Modify the checking of SAFE_STRTOF as suggested by Cyril
  2. Adjust the position of the checking of the return value for
     SAFE_STRTOUL

Changes in v2:
  1. Add range checking for SAFE_STRTOF as suggested by Cyril

Changes in v1:
  1. Add SAFE_STRTOF
  2. Replace atoi/atof with SAFE_STRTOL/SAFE_STRTOF to deal with abnormal
     input for parse_opts()

Zhao Gongyi (3):
  lib/safe_macros: Add SAFE_STRTOF
  lib: Replace atoi/atof with SAFE_STRTOL/SAFE_STRTOF
  lib: Adjust the position of the checking of the return value

 include/safe_macros_fn.h  |  3 +++
 include/tst_safe_macros.h |  3 +++
 lib/safe_macros.c         | 33 +++++++++++++++++++++++++++++++++
 lib/tst_test.c            |  9 ++++-----
 4 files changed, 43 insertions(+), 5 deletions(-)

--
2.17.1


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-12-07 15:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-05  6:54 [LTP] [PATCH v3 0/3] Add handling of abnormal input for parse_opts() Zhao Gongyi via ltp
2022-12-05  6:54 ` [LTP] [PATCH v3 1/3] lib/safe_macros: Add SAFE_STRTOF Zhao Gongyi via ltp
2022-12-05  6:54 ` [LTP] [PATCH v3 2/3] lib: Replace atoi/atof with SAFE_STRTOL/SAFE_STRTOF Zhao Gongyi via ltp
2022-12-05  6:54 ` [LTP] [PATCH v3 3/3] lib: Adjust the position of the checking of the return value Zhao Gongyi via ltp
2022-12-07 15:40 ` [LTP] [PATCH v3 0/3] Add handling of abnormal input for parse_opts() Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox