Bug 31149

Summary: Calling databaseIdentifier on LocalStorage's background thread is not safe.
Product: WebKit Reporter: Jeremy Orlow <jorlow>
Component: New BugsAssignee: Jeremy Orlow <jorlow>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, darin, jorlow
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch fishd: review+

Jeremy Orlow
Reported 2009-11-04 19:03:44 PST
Calling SecurityOrigin::databaseIdentifier on LocalStorage's background thread is not safe. databaseIdentifier does a bunch of string concatenation which ref-counts StringImpls in some cases. This was caught by valgrind thread sanitizer: http://code.google.com/p/chromium/issues/detail?id=25645 There's no way to test for such racyness, unfortunately.
Attachments
Patch (4.42 KB, patch)
2009-11-04 19:05 PST, Jeremy Orlow
fishd: review+
Jeremy Orlow
Comment 1 2009-11-04 19:05:58 PST
Jeremy Orlow
Comment 2 2009-11-05 00:58:56 PST
Note You need to log in before you can comment on or make changes to this bug.