mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: stricter length checking when deserializing property list
The length of the value for each value in a property list is serialized twice. Both the reference implementation and pipewire-pulse send the same length, so be stricter and only accept a property list if both lengths are the same.
This commit is contained in:
		
							parent
							
								
									2b11efdf3b
								
							
						
					
					
						commit
						12bddf6521
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -122,6 +122,9 @@ static int read_props(struct message *m, struct pw_properties *props, bool remap
 | 
			
		|||
				TAG_INVALID)) < 0)
 | 
			
		||||
			return res;
 | 
			
		||||
 | 
			
		||||
		if (length != size)
 | 
			
		||||
			return -EINVAL;
 | 
			
		||||
 | 
			
		||||
		if (remap && (map = str_map_find(props_key_map, NULL, key)) != NULL) {
 | 
			
		||||
			key = map->pw_str;
 | 
			
		||||
			if (map->child != NULL &&
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue