mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-25 14:06:27 +00:00 
			
		
		
		
	chan_iax2.c: Don't send unsanitized data to the logger.
This resolves an issue where non-printable characters could be sent to the console/log files.
This commit is contained in:
		
				
					committed by
					
						![asterisk-org-access-app[bot]](/avatar/58a64b62d62d5b23df7bc832f016f9db?size=40) asterisk-org-access-app[bot]
						asterisk-org-access-app[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							36f8490901
						
					
				
				
					commit
					fb74ef1c7a
				
			| @@ -1063,7 +1063,7 @@ int iax_parse_ies(struct iax_ies *ies, unsigned char *data, int datalen) | ||||
| 			if (len == (int)sizeof(unsigned int)) { | ||||
| 				ies->calling_ani2 = ntohl(get_unaligned_uint32(data + 2)); | ||||
| 			} else { | ||||
| 				snprintf(tmp, (int)sizeof(tmp), "callingani2 was %d long: %s\n", len, data + 2); | ||||
| 				snprintf(tmp, sizeof(tmp), "Expected callingani2 to be %zu bytes but was %d\n", sizeof(unsigned int), len); | ||||
| 				errorf(tmp); | ||||
| 			} | ||||
| 			break; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user