Skip to content

imap: remove the only sscanf() call in the IMAP code + add strdup() check#11673

Closed
bagder wants to merge 3 commits intomasterfrom
bagder/imap-sscan-less
Closed

imap: remove the only sscanf() call in the IMAP code + add strdup() check#11673
bagder wants to merge 3 commits intomasterfrom
bagder/imap-sscan-less

Conversation

@bagder
Copy link
Member

@bagder bagder commented Aug 14, 2023

  • sscanf has generally been a source of past problems
  • this improvement also verifies that the uid ends with ] which it did not previously
  • failing a strdup() should never be silently ignored.

@bagder bagder added the IMAP label Aug 14, 2023
@bagder bagder closed this in 9176510 Aug 14, 2023
@bagder bagder deleted the bagder/imap-sscan-less branch August 14, 2023 16:07
ptitSeb pushed a commit to wasix-org/curl that referenced this pull request Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant