Commit 1bf13e1f authored by rswindell's avatar rswindell
Browse files

MSVC-detected heap corruption not fixed. Added call stack trace to comment..

Does strlen include NULL terminator?
parent 6741fe64
...@@ -2474,7 +2474,11 @@ js_internal_charfunc(JSContext *cx, uintN argc, jsval *arglist, char *(*func)(ch ...@@ -2474,7 +2474,11 @@ js_internal_charfunc(JSContext *cx, uintN argc, jsval *arglist, char *(*func)(ch
} }
js_str = JS_NewStringCopyZ(cx, func(str)); js_str = JS_NewStringCopyZ(cx, func(str));
free(str); /* MSVC detected heap corruption here! */ free(str); /* MSVC detected heap corruption here (again):
sbbs.dll!free(void * pUserData=0x08cdc6b0) Line 49 + 0xb bytes C++
> sbbs.dll!js_internal_charfunc(JSContext * cx=0x0a594488, unsigned int argc=1, unsigned __int64 * arglist=0x0c3a0150, char * (char *)* func=0x10153fb0, unsigned int extra_bytes=1) Line 2477 + 0x9 bytes C
sbbs.dll!js_backslash(JSContext * cx=0x0a594488, unsigned int argc=1, unsigned __int64 * arglist=0x0c3a0150) Line 2506 + 0x18 bytes C
*/
if(js_str==NULL) if(js_str==NULL)
return(JS_FALSE); return(JS_FALSE);
......
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