mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	xcursor: fix NULL deref on malloc() fail
This commit is contained in:
		
							parent
							
								
									b06d58fa8b
								
							
						
					
					
						commit
						e16b0068a7
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
					@ -763,9 +763,11 @@ xcursor_load_theme(const char *theme, int size,
 | 
				
			||||||
			continue;
 | 
								continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		full = xcursor_build_fullname(dir, "cursors", "");
 | 
							full = xcursor_build_fullname(dir, "cursors", "");
 | 
				
			||||||
 | 
							if (full) {
 | 
				
			||||||
			load_all_cursors_from_dir(full, size, load_callback,
 | 
								load_all_cursors_from_dir(full, size, load_callback,
 | 
				
			||||||
						  user_data);
 | 
											  user_data);
 | 
				
			||||||
			free(full);
 | 
								free(full);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (!inherits) {
 | 
							if (!inherits) {
 | 
				
			||||||
			full = xcursor_build_fullname(dir, "", "index.theme");
 | 
								full = xcursor_build_fullname(dir, "", "index.theme");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue