New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WTF: Fix unsigned overflows/underflows in string conversion #13308
Conversation
EWS run on previous version of this PR (hash ea2d616) |
EWS run on previous version of this PR (hash 8813208) |
8813208
to
7b64c7a
Compare
EWS run on previous version of this PR (hash 7b64c7a) |
7b64c7a
to
8f3ba5b
Compare
EWS run on previous version of this PR (hash 8f3ba5b) |
EWS run on previous version of this PR (hash 8a9e745) |
EWS run on current version of this PR (hash 713b9e6) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the PR to use static_cast<>()
with std::make_unsigned_t<>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me
https://bugs.webkit.org/show_bug.cgi?id=256164 Reviewed by David Kilzer. Although we check that integer is less than 0 before negating it, the UBSanitizer keeps tripping up at this section. The proper fix would be to use std::make_unsigned_t<IntegerType> here, to convert the variable to its unsigned equivalent. * Source/WTF/wtf/text/IntegerToStringConversion.h: (writeIntegerToBuffer): Cast to unsigned. Canonical link: https://commits.webkit.org/263866@main
713b9e6
to
a83ee57
Compare
Committed 263866@main (a83ee57): https://commits.webkit.org/263866@main Reviewed commits have been landed. Closing PR #13308 and removing active labels. |
a83ee57
713b9e6