mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-04 04:12:03 +00:00
potential format string exploit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4253 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2cf3ad1c6f
commit
711c59a6e0
@ -225,7 +225,7 @@ static JSBool event_add_body(JSContext *cx, JSObject *obj, uintN argc, jsval *ar
|
|||||||
|
|
||||||
if (argc > 0) {
|
if (argc > 0) {
|
||||||
char *body = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
|
char *body = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
|
||||||
switch_event_add_body(eo->event, body);
|
switch_event_add_body(eo->event, "%s", body);
|
||||||
*rval = BOOLEAN_TO_JSVAL( JS_TRUE );
|
*rval = BOOLEAN_TO_JSVAL( JS_TRUE );
|
||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user