Skip to content
Snippets Groups Projects
Commit 7a657269 authored by rswindell's avatar rswindell
Browse files

Added comment where MSVC detected a heap corruption. Needs to be looked into

by whomever wrote js_internal_charfunc().
parent f5ee5bb9
No related branches found
No related tags found
No related merge requests found
...@@ -2467,7 +2467,7 @@ js_internal_charfunc(JSContext *cx, uintN argc, jsval *arglist, char *(*func)(ch ...@@ -2467,7 +2467,7 @@ js_internal_charfunc(JSContext *cx, uintN argc, jsval *arglist, char *(*func)(ch
return(JS_TRUE); return(JS_TRUE);
js_str = JS_NewStringCopyZ(cx, func(str)); js_str = JS_NewStringCopyZ(cx, func(str));
free(str); free(str); /* MSVC detected heap corruption here! */
if(js_str==NULL) if(js_str==NULL)
return(JS_FALSE); return(JS_FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment