mbox series

[v3,0/3] Refactoring and error handling from Coverity scan fixes

Message ID 20240417161931.964526-1-aalbersh@redhat.com (mailing list archive)
Headers show
Series Refactoring and error handling from Coverity scan fixes | expand

Message

Andrey Albershteyn April 17, 2024, 4:19 p.m. UTC
Hi all,

Just a few minor patches from feedback on coverity fixes.

v3:
- error message change to "invalid runtime"
v2:
- reduce unnecessary indentation in new flist_find_type() helper
- make new helper static
- add patch to handle strtol() errors
- set errno to zero to avoid catching random errnos

--
Andrey

--
Andrey

Andrey Albershteyn (3):
  xfs_fsr: replace atoi() with strtol()
  xfs_db: add helper for flist_find_type for clearer field matching
  xfs_repair: catch strtol() errors

 db/flist.c          | 60 ++++++++++++++++++++++++++++-----------------
 fsr/xfs_fsr.c       | 26 +++++++++++++++++---
 repair/xfs_repair.c | 40 +++++++++++++++++++++++++++++-
 3 files changed, 100 insertions(+), 26 deletions(-)