Bug 225571

Summary: Remove calls to the String::toInt family of functions from JavaScriptCore
Product: WebKit Reporter: Darin Adler <darin>
Component: JavaScriptCoreAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, hi, joepeck, keith_miller, mark.lam, msaboff, saam, sam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch sam: review+, darin: commit-queue-

Description Darin Adler 2021-05-08 18:23:29 PDT
Remove calls to the String::toInt family of functions from JavaScriptCore
Comment 1 Darin Adler 2021-05-08 18:26:09 PDT
Created attachment 428105 [details]
Patch
Comment 2 Darin Adler 2021-05-08 19:06:43 PDT
Style checker is complaining that I am using the word fuzzer in the change log. This is very silly since it’s in the file name of a file I am modifying.
Comment 3 Sam Weinig 2021-05-08 19:16:54 PDT
Comment on attachment 428105 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=428105&action=review

> Source/JavaScriptCore/ChangeLog:10
> +        (Inspector::parseLocation): Use parseIntegerAllowingTrailingJunk<uintptr_t> instead of
> +        String::toIntPtr.

Why the change from intptr_t to uintptr_t here?
Comment 4 Darin Adler 2021-05-08 20:42:17 PDT
Comment on attachment 428105 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=428105&action=review

>> Source/JavaScriptCore/ChangeLog:10
>> +        String::toIntPtr.
> 
> Why the change from intptr_t to uintptr_t here?

Unintentional. I will change it back.
Comment 5 Darin Adler 2021-05-08 21:13:16 PDT
Comment on attachment 428105 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=428105&action=review

>>> Source/JavaScriptCore/ChangeLog:10
>>> +        String::toIntPtr.
>> 
>> Why the change from intptr_t to uintptr_t here?
> 
> Unintentional. I will change it back.

Actually, the type is JSC::SourceID, not intptr_t and not uintptr_t either. I am changing to that.
Comment 6 Darin Adler 2021-05-08 21:15:29 PDT
Committed r277240 (237509@main): <https://commits.webkit.org/237509@main>
Comment 7 Radar WebKit Bug Importer 2021-05-08 21:16:25 PDT
<rdar://problem/77704068>