Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
https://bugs.webkit.org/show_bug.cgi?id=35843
Re-land reverted fix to JSString::getIndex() Reviewed by Sam Weinig. Calling getIndex() on a JSString in rope form may result in a JSException being thrown if there is insuficient memory so value(exec) returns UString() with length zero, which will be passed to jsSingleCharacterSubstring. Add a slow case function to trap the error & return a safe null value, until the exception is handled. * runtime/JSString.cpp: (JSC::JSString::getIndexSlowCase): (JSC::JSString::getStringPropertyDescriptor): * runtime/JSString.h: (JSC::jsSingleCharacterSubstring): (JSC::JSString::getIndex): (JSC::jsSingleCharacterString): (JSC::JSString::getStringPropertySlot): Canonical link: https://commits.webkit.org/47316@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@56021 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Gavin Barraclough
committed
Mar 15, 2010
1 parent
ddf53cd
commit f1ee9f021b7b0429605334ae76c37824a8f0c207
Showing
3 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters