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 /commit-graph.c | |
| parent | merge: replace atoi() with strtol_i() for marker size validation (diff) | |
| download | git-e226ba81a2520263580721b1527794428923cd67.tar.gz git-e226ba81a2520263580721b1527794428923cd67.zip | |
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 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
