Bug 162752

Summary: URLParser should correctly parse ports with leading 0's
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch thorton: review+

Alex Christensen
Reported 2016-09-29 14:18:45 PDT
URLParser should correctly parse ports with leading 0's
Attachments
Patch (4.38 KB, patch)
2016-09-29 14:19 PDT, Alex Christensen
thorton: review+
Alex Christensen
Comment 1 2016-09-29 14:19:32 PDT
Alex Christensen
Comment 2 2016-09-29 14:23:16 PDT
Geoffrey Garen
Comment 3 2016-09-29 14:23:38 PDT
Comment on attachment 290243 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=290243&action=review > Source/WebCore/platform/URLParser.cpp:2365 > + bool seenDigit = false; > + bool seenMultipleDigits = false; size_t digitCount Then there's no need to branch. Computers like counting things.
Alex Christensen
Comment 4 2016-09-29 14:27:48 PDT
Note You need to log in before you can comment on or make changes to this bug.