Correctly check length when allocating string.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 Jun 2012 17:41:59 +0000 (17:41 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 Jun 2012 17:41:59 +0000 (17:41 +0000)
commit76f4f9efa8b08fbe84e8ce4594c27c1a6c103235
treed151625664f0f5247f575014226747339a7519d0
parent4ea1fc0d273661042614c6a32e3bc22f5ae2a7ec
Correctly check length when allocating string.

R=jkummerow@chromium.org
BUG=
TEST=regress-regexp-overflow.js

Review URL: https://chromiumcodereview.appspot.com/10538012

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11720 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/runtime.cc
test/cctest/test-strings.cc