Bug 58393 - Crash when serializing a null AttributedString
Summary: Crash when serializing a null AttributedString
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.6
: P2 Normal
Assignee: Alexey Proskuryakov
Keywords: InRadar
Depends on:
Reported: 2011-04-12 16:20 PDT by Alexey Proskuryakov
Modified: 2011-04-12 16:34 PDT (History)
0 users

See Also:

proposed fix (1.61 KB, patch)
2011-04-12 16:22 PDT, Alexey Proskuryakov
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2011-04-12 16:20:43 PDT
WebCore may refuse to provide an AttributedString (e.g. when inside a password field). Calling functions like CFStringLength on a null argument crashes.
Comment 1 Alexey Proskuryakov 2011-04-12 16:20:58 PDT
Comment 2 Alexey Proskuryakov 2011-04-12 16:22:46 PDT
Created attachment 89301 [details]
proposed fix
Comment 3 Alexey Proskuryakov 2011-04-12 16:34:31 PDT
Committed <http://trac.webkit.org/changeset/83662>.