Address undefined behavior found by UBSan in StringToIntegerConversion.h: - wtf/text/StringToIntegerConversion.h:94:30: runtime error: signed integer overflow: 2147483640 + 8 cannot be represented in type 'int' - wtf/text/StringToIntegerConversion.h:104:17: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
Created attachment 424142 [details] Patch
Comment on attachment 424142 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=424142&action=review r=me > Source/WTF/wtf/text/StringToIntegerConversion.h:54 > + Checked<IntegralType, RecordOverflow> value = 0; No need for = 0 anymore here.
Committed r274959 (235712@main): <https://commits.webkit.org/235712@main>
<rdar://problem/75799204>