mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Add check of binding ranges in direct plugins
Add checks of slave channel numbers in bindings of dmix/dsnoop/dshare plugins to avoid segfault. Also, fix a possible memory leaks in the error path.
This commit is contained in:
		
							parent
							
								
									4632e0f637
								
							
						
					
					
						commit
						6ff727bb7f
					
				
					 5 changed files with 25 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -614,7 +614,7 @@ int snd_pcm_dshare_open(snd_pcm_t **pcmp, const char *name,
 | 
			
		|||
		goto _err_nosem;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	ret = snd_pcm_direct_parse_bindings(dshare, opts->bindings);
 | 
			
		||||
	ret = snd_pcm_direct_parse_bindings(dshare, params, opts->bindings);
 | 
			
		||||
	if (ret < 0)
 | 
			
		||||
		goto _err_nosem;
 | 
			
		||||
		
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue