[asterisk-commits] tilghman: branch 1.6.0 r145429 - in /branches/1.6.0: ./ apps/app_sms.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 1 10:45:00 CDT 2008
Author: tilghman
Date: Wed Oct 1 10:44:59 2008
New Revision: 145429
URL: http://svn.digium.com/view/asterisk?view=rev&rev=145429
Log:
Merged revisions 145428 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r145428 | tilghman | 2008-10-01 10:44:06 -0500 (Wed, 01 Oct 2008) | 7 lines
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:
branches/1.6.0/ (props changed)
branches/1.6.0/apps/app_sms.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/apps/app_sms.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/apps/app_sms.c?view=diff&rev=145429&r1=145428&r2=145429
==============================================================================
--- branches/1.6.0/apps/app_sms.c (original)
+++ branches/1.6.0/apps/app_sms.c Wed Oct 1 10:44:59 2008
@@ -1742,7 +1742,7 @@
sms_t h = { 0 };
/* argument parsing support */
struct ast_flags sms_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