]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
assert bounds checking
authorMichael Jerris <mike@jerris.com>
Mon, 8 Dec 2008 18:04:34 +0000 (18:04 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 8 Dec 2008 18:04:34 +0000 (18:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10661 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c

index 303deab59c72c2cf474123a09671d9088f7de2f3..82ce4a2086f4d1850aee8de9ce0210543018ec45 100644 (file)
@@ -204,6 +204,7 @@ static switch_status_t my_on_hangup(switch_core_session_t *session)
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Got error [%ld] posting to web server [%s]\n", 
                                                                  httpRes, globals.urls[globals.url_index]);
                                globals.url_index++;
+                               switch_assert(globals.url_count <= MAX_URLS);
                                if (globals.url_index >= globals.url_count) {
                                        globals.url_index = 0;
                                }