mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: bluez: backend-native: fix DTMF string leak
This commit is contained in:
		
							parent
							
								
									33a5c4ba10
								
							
						
					
					
						commit
						66014e5828
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -1163,10 +1163,9 @@ next_indicator:
 | 
				
			||||||
			return true;
 | 
								return true;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else if (spa_strstartswith(buf, "AT+VTS=")) {
 | 
						} else if (spa_strstartswith(buf, "AT+VTS=")) {
 | 
				
			||||||
		char *dtmf;
 | 
							char dtmf[2];
 | 
				
			||||||
		enum cmee_error error;
 | 
							enum cmee_error error;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		dtmf = calloc(1, 2);
 | 
					 | 
				
			||||||
		if (sscanf(buf, "AT+VTS=%1s", dtmf) != 1) {
 | 
							if (sscanf(buf, "AT+VTS=%1s", dtmf) != 1) {
 | 
				
			||||||
			spa_log_debug(backend->log, "Failed to parse AT+VTS: \"%s\"", buf);
 | 
								spa_log_debug(backend->log, "Failed to parse AT+VTS: \"%s\"", buf);
 | 
				
			||||||
			rfcomm_send_error(rfcomm, CMEE_AG_FAILURE);
 | 
								rfcomm_send_error(rfcomm, CMEE_AG_FAILURE);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue