[asterisk-commits] mmichelson: branch 12 r413258 - in /branches/12: ./ res/res_config_odbc.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri May 2 15:27:09 CDT 2014
Author: mmichelson
Date: Fri May 2 15:27:05 2014
New Revision: 413258
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=413258
Log:
Prevent crashes in res_config_odbc due to uninitialized string fields.
Patches:
odbc-crash.patch by John Hardin (License #6512)
........
Merged revisions 413241 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 413251 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
branches/12/ (props changed)
branches/12/res/res_config_odbc.c
Propchange: branches/12/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: branches/12/res/res_config_odbc.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_config_odbc.c?view=diff&rev=413258&r1=413257&r2=413258
==============================================================================
--- branches/12/res/res_config_odbc.c (original)
+++ branches/12/res/res_config_odbc.c Fri May 2 15:27:05 2014
@@ -692,6 +692,10 @@
return -1;
}
+ if (ast_string_field_init(&cps, 256)) {
+ return -1;
+ }
+
obj = ast_odbc_request_obj2(database, connected_flag);
if (!obj) {
return -1;
@@ -754,6 +758,10 @@
struct ast_flags connected_flag = { RES_ODBC_CONNECTED };
if (!table) {
+ return -1;
+ }
+
+ if (ast_string_field_init(&cps, 256)) {
return -1;
}
More information about the asterisk-commits
mailing list