diff options
author | Usman Akinyemi <usmanakinyemi202@gmail.com> | 2024-10-24 00:24:58 +0000 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2024-10-24 14:03:44 -0400 |
commit | e226ba81a2520263580721b1527794428923cd67 (patch) | |
tree | d55964be56439ced2ce032874099b7a36ff1709c /git-gui/lib/commit.tcl | |
parent | e36f009e69b68a82f216f9633f99198421a67f12 (diff) |
imap: replace atoi() with strtol_i() for UIDVALIDITY and UIDNEXT parsing
Replace unsafe uses of atoi() with strtol_i() to improve error handling
when parsing UIDVALIDITY, UIDNEXT, and APPENDUID in IMAP commands.
Invalid values, such as those with letters, now trigger error messages and
prevent malformed status responses.
I did not add any test for this commit as we do not have any test
for git-imap-send(1) at this point.
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions