Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
CachedCall (and its clients) needs overflow checks.
https://bugs.webkit.org/show_bug.cgi?id=179185 Reviewed by JF Bastien. JSTests: * stress/regress-179185.js: Added. Source/JavaScriptCore: * interpreter/CachedCall.h: (JSC::CachedCall::CachedCall): (JSC::CachedCall::hasOverflowedArguments): * runtime/ArgList.h: (JSC::MarkedArgumentBuffer::clear): * runtime/StringPrototype.cpp: (JSC::replaceUsingRegExpSearch): Canonical link: https://commits.webkit.org/195337@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
44 additions
and 1 deletion.
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
@@ -0,0 +1,3 @@ | ||
// This test passes if it does not fail assertions on a debug build. | ||
str = "Hello There Quick Brown Fox"; | ||
str.replace(/(((el)|(ui))|((Br)|(Fo)))/g, () => { }); |
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
@@ -73,6 +73,8 @@ class MarkedArgumentBuffer : public RecordOverflow { | ||
|
||
void clear() | ||
{ | ||
ASSERT(!m_needsOverflowCheck); | ||
clearOverflow(); | ||
m_size = 0; | ||
} | ||
|
||
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