mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@211569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -262,7 +262,7 @@ static int enum_result_read(struct ast_channel *chan, const char *cmd, char *dat
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (sscanf(args.resultnum, "%u", &num) != 1) {
|
||||
if (sscanf(args.resultnum, "%30u", &num) != 1) {
|
||||
ast_log(LOG_ERROR, "Invalid value '%s' for resultnum to ENUMRESULT!\n", args.resultnum);
|
||||
goto finish;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user