mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-25 20:54:15 +00:00
fix potential crash from malformed js
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5369 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
9c849f1193
commit
a2bcfdbd2f
2 files changed
+57
-148
No files matched your search
@@ -122,6 +122,7 @@ struct sm_module_interface {
|
||||
typedef struct sm_module_interface sm_module_interface_t;
|
||||
typedef switch_status_t (*spidermonkey_init_t) (const sm_module_interface_t ** module_interface);
|
||||
|
||||
#define SANITY_CODE_VAL 424242
|
||||
struct js_session {
|
||||
switch_core_session_t *session;
|
||||
JSContext *cx;
|
||||
@@ -131,6 +132,7 @@ struct js_session {
|
||||
JSFunction *on_hangup;
|
||||
int stack_depth;
|
||||
switch_channel_state_t hook_state;
|
||||
int sanity_code;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user