Skip to content

tool_paramhlp: improve str2num() by avoiding unnecessary call to strlen()#11742

Closed
foutaise wants to merge 1 commit intocurl:masterfrom
foutaise:master
Closed

tool_paramhlp: improve str2num() by avoiding unnecessary call to strlen()#11742
foutaise wants to merge 1 commit intocurl:masterfrom
foutaise:master

Conversation

@foutaise
Copy link
Contributor

After reading @bagder last blog entry regarding CVE-2020-19909, I had a look to str2num() function and realized that a small improvement might be applied to avoid an unnecessary call to strlen().

Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bagder
Copy link
Member

bagder commented Aug 27, 2023

Thanks!

@bagder bagder closed this in 458c70d Aug 27, 2023
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

Development

Successfully merging this pull request may close these issues.

2 participants