| Summary: | iOS WebKit: Crash in charactersAroundPosition | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Enrica Casucci <enrica> | ||||
| Component: | WebKit2 | Assignee: | Enrica Casucci <enrica> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | iPhone / iPad | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Enrica Casucci
2014-06-09 15:06:17 PDT
Created attachment 232737 [details]
Patch
Attachment 232737 [details] did not pass style-queue:
ERROR: Source/WebKit2/WebProcess/WebPage/WebPage.cpp:718: Missing space before ( in if( [whitespace/parens] [5]
Total errors found: 1 in 4 files
If any of these errors are false positives, please file a bug against check-webkit-style.
I've already fixed the style issue. Comment on attachment 232737 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=232737&action=review > Source/WebCore/editing/VisibleUnits.cpp:1843 > + if (index >= maxCharacters) > + break; Shouldn't this be after "characters[index++] = characterString[i];". You may want to change the for() loop into a while loop. Having a for() loop that breaks into the flow tends to add complexity. Committed revision 169728. |