mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	modules: enforce equal library and compiler versions
For all the modules that include the private header we require that the library and compiler versions match. Otherwise we might end up poking into new or old fields that got moved or changed in the private struct and crash. See #3243
This commit is contained in:
		
							parent
							
								
									ad71dd89a2
								
							
						
					
					
						commit
						697daeedf7
					
				
					 4 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -387,6 +387,9 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
 | 
			
		|||
		NULL
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	if (!spa_streq(pw_get_library_version(), pw_get_headers_version()))
 | 
			
		||||
		return -ESTALE;
 | 
			
		||||
 | 
			
		||||
	PW_LOG_TOPIC_INIT(mod_topic);
 | 
			
		||||
 | 
			
		||||
	impl = calloc(1, sizeof(struct impl));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue