Commit fe952d72 authored by iposva@chromium.org's avatar iposva@chromium.org

- Ensure the stack trace limit is not negative.

- Enable fuzzing of the CollectStackTrace runtime call.

Review URL: http://codereview.chromium.org/491005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3451 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e32fdc02
......@@ -7884,7 +7884,8 @@ static Object* Runtime_CollectStackTrace(Arguments args) {
HandleScope scope;
int initial_size = limit < 10 ? limit : 10;
limit = Max(limit, 0); // Ensure that limit is not negative.
int initial_size = Min(limit, 10);
Handle<JSArray> result = Factory::NewJSArray(initial_size * 3);
StackFrameIterator iter;
......
......@@ -129,7 +129,6 @@ var knownProblems = {
"Log": true,
"DeclareGlobals": true,
"CollectStackTrace": true,
"PromoteScheduledException": true,
"DeleteHandleScopeExtensions": true
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment