Changeset 157931 in webkit
- Timestamp:
- Oct 24, 2013 9:09:48 AM (10 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r157927 r157931 1 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com> 2 3 Remove PCRE workaround. 4 https://bugs.webkit.org/show_bug.cgi?id=123265 5 6 Reviewed by Darin Adler. 7 8 * wtf/text/StringStatics.cpp: 9 (WTF::StringImpl::empty): 10 1 11 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com> 2 12 -
trunk/Source/WTF/wtf/text/StringStatics.cpp
r154294 r157931 44 44 StringImpl* StringImpl::empty() 45 45 { 46 // FIXME: This works around a bug in our port of PCRE, that a regular expression 47 // run on the empty string may still perform a read from the first element, and 48 // as such we need this to be a valid pointer. No code should ever be reading 49 // from a zero length string, so this should be able to be a non-null pointer 50 // into the zero-page. 51 // Replace this with 'reinterpret_cast<UChar*>(static_cast<intptr_t>(1))' once 52 // PCRE goes away. 53 static LChar emptyLCharData = 0; 54 DEFINE_STATIC_LOCAL(StringImpl, emptyString, (&emptyLCharData, 0, ConstructStaticString)); 46 DEFINE_STATIC_LOCAL(StringImpl, emptyString, (reinterpret_cast<UChar*>(static_cast<intptr_t>(1)), 0, ConstructStaticString)); 55 47 WTF_ANNOTATE_BENIGN_RACE(&emptyString, "Benign race on StringImpl::emptyString reference counter"); 56 48 return &emptyString;
Note: See TracChangeset
for help on using the changeset viewer.