Guard against stack overflow in Runtime::StringReplaceOneCharWithString.
authorjarin@chromium.org <jarin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 12 May 2014 11:36:47 +0000 (11:36 +0000)
committerjarin@chromium.org <jarin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 12 May 2014 11:36:47 +0000 (11:36 +0000)
commitf5c62871b8245c8468e9893795933b7554ee49f9
tree3ec64825b92ee014b4b3499b29831fd2ec0e667b
parent078e20a036a1b73d4e4ce3ff1b240e7d483f74cc
Guard against stack overflow in Runtime::StringReplaceOneCharWithString.

Unfortunately, this only triggers with "ulimit -s 1024" (or less), so we
cannot have an mjsunit test. The test that fails is
test/mjsunit/string-replace-one-char.js on x64.debug.

R=ishell@chromium.org
BUG=

Review URL: https://codereview.chromium.org/264383006

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21262 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/runtime.cc