Thread: [javascriptlint-commit] SF.net SVN: javascriptlint: [152] trunk/spidermonkey/src/jsdbgapi.c
Status: Beta
Brought to you by:
matthiasmiller
From: <mat...@us...> - 2008-03-01 19:05:09
|
Revision: 152 http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=152&view=rev Author: matthiasmiller Date: 2008-03-01 11:05:07 -0800 (Sat, 01 Mar 2008) Log Message: ----------- fix crash when functions have too many parameters Modified Paths: -------------- trunk/spidermonkey/src/jsdbgapi.c Modified: trunk/spidermonkey/src/jsdbgapi.c =================================================================== --- trunk/spidermonkey/src/jsdbgapi.c 2008-03-01 19:04:30 UTC (rev 151) +++ trunk/spidermonkey/src/jsdbgapi.c 2008-03-01 19:05:07 UTC (rev 152) @@ -1187,8 +1187,10 @@ } n = scope->entryCount; +#if 0 if (n > scope->map.nslots) n = scope->map.nslots; +#endif pd = (JSPropertyDesc *) JS_malloc(cx, (size_t)n * sizeof(JSPropertyDesc)); if (!pd) return JS_FALSE; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |