mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -1037,7 +1037,7 @@ static int chanspy_exec(struct ast_channel *chan, const char *data) | ||||
| 		if (ast_test_flag(&flags, OPTION_VOLUME) && opts[OPT_ARG_VOLUME]) { | ||||
| 			int vol; | ||||
|  | ||||
| 			if ((sscanf(opts[OPT_ARG_VOLUME], "%d", &vol) != 1) || (vol > 4) || (vol < -4)) | ||||
| 			if ((sscanf(opts[OPT_ARG_VOLUME], "%30d", &vol) != 1) || (vol > 4) || (vol < -4)) | ||||
| 				ast_log(LOG_NOTICE, "Volume factor must be a number between -4 and 4\n"); | ||||
| 			else | ||||
| 				volfactor = vol; | ||||
| @@ -1158,7 +1158,7 @@ static int extenspy_exec(struct ast_channel *chan, const char *data) | ||||
| 		if (ast_test_flag(&flags, OPTION_VOLUME) && opts[OPT_ARG_VOLUME]) { | ||||
| 			int vol; | ||||
|  | ||||
| 			if ((sscanf(opts[OPT_ARG_VOLUME], "%d", &vol) != 1) || (vol > 4) || (vol < -4)) | ||||
| 			if ((sscanf(opts[OPT_ARG_VOLUME], "%30d", &vol) != 1) || (vol > 4) || (vol < -4)) | ||||
| 				ast_log(LOG_NOTICE, "Volume factor must be a number between -4 and 4\n"); | ||||
| 			else | ||||
| 				volfactor = vol; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user