bugfix [#22098] Binreloc buffer overrun
from Dan Eicher (dna) there are many of these in blender however this case could happen quite easily.
This commit is contained in:
		| @@ -1312,7 +1312,7 @@ void BLI_where_am_i(char *fullname, const char *name) | |||||||
| 	/* linux uses binreloc since argv[0] is not relyable, call br_init( NULL ) first */ | 	/* linux uses binreloc since argv[0] is not relyable, call br_init( NULL ) first */ | ||||||
| 	path = br_find_exe( NULL ); | 	path = br_find_exe( NULL ); | ||||||
| 	if (path) { | 	if (path) { | ||||||
| 		strcpy(fullname, path); | 		BLI_strncpy(fullname, path, sizeof(fullname)); | ||||||
| 		free(path); | 		free(path); | ||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user