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+

Description Jeremy Orlow 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.
Comment 1 Jeremy Orlow 2009-11-04 19:05:58 PST
Created attachment 42537 [details]
Patch
Comment 2 Jeremy Orlow 2009-11-05 00:58:56 PST
Committed r50557: <http://trac.webkit.org/changeset/50557>