[asterisk-commits] tilghman: trunk r145428 - /trunk/apps/app_sms.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 1 10:44:07 CDT 2008
Author: tilghman
Date: Wed Oct 1 10:44:06 2008
New Revision: 145428
URL: http://svn.digium.com/view/asterisk?view=rev&rev=145428
Log:
Initializing buffer prevents a segfault when arguments are incomplete.
(closes issue #13471)
Reported by: alecdavis
Patches:
20080916__bug13471.diff.txt uploaded by Corydon76 (license 14)
Tested by: alecdavis
Modified:
trunk/apps/app_sms.c
Modified: trunk/apps/app_sms.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_sms.c?view=diff&rev=145428&r1=145427&r2=145428
==============================================================================
--- trunk/apps/app_sms.c (original)
+++ trunk/apps/app_sms.c Wed Oct 1 10:44:06 2008
@@ -1744,7 +1744,7 @@
sms_t h = { 0 };
/* argument parsing support */
struct ast_flags flags;
- char *parse, *sms_opts[OPTION_ARG_ARRAY_SIZE];
+ char *parse, *sms_opts[OPTION_ARG_ARRAY_SIZE] = { 0, };
char *p;
AST_DECLARE_APP_ARGS(sms_args,
AST_APP_ARG(queue);
More information about the asterisk-commits
mailing list