Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch-id: replace
atoi()
with strtoi_with_tail
The change is made to improve the error-handling capabilities during the conversion of string to integers. The `strtoi_with_tail` function offers a more robust mechanism for converting strings to integers by providing enhanced error detection. Unlike `atoi`, `strtoi_with_tail` allows the code to differentiate between a valid conversion and an invalid one, offering better resilience against potential issues such as reading hunk header of a corrupted patch. Signed-off-by: Mohit Marathe <mohitmarathe@proton.me>
- Loading branch information