Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
1bf13e1f
Commit
1bf13e1f
authored
May 13, 2013
by
rswindell
Browse files
MSVC-detected heap corruption not fixed. Added call stack trace to comment..
Does strlen include NULL terminator?
parent
6741fe64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/sbbs3/js_global.c
src/sbbs3/js_global.c
+5
-1
No files found.
src/sbbs3/js_global.c
View file @
1bf13e1f
...
...
@@ -2474,7 +2474,11 @@ js_internal_charfunc(JSContext *cx, uintN argc, jsval *arglist, char *(*func)(ch
}
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
)
return
(
JS_FALSE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment