[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28320] trunk/blender/source/blender/ blenlib/intern/path_util.c: bugfix [#22098] Binreloc buffer overrun
Campbell Barton
ideasman42 at gmail.com
Wed Apr 21 09:59:16 CEST 2010
Revision: 28320
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28320
Author: campbellbarton
Date: 2010-04-21 09:59:16 +0200 (Wed, 21 Apr 2010)
Log Message:
-----------
bugfix [#22098] Binreloc buffer overrun
from Dan Eicher (dna)
there are many of these in blender however this case could happen quite easily.
Modified Paths:
--------------
trunk/blender/source/blender/blenlib/intern/path_util.c
Modified: trunk/blender/source/blender/blenlib/intern/path_util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/path_util.c 2010-04-21 07:56:34 UTC (rev 28319)
+++ trunk/blender/source/blender/blenlib/intern/path_util.c 2010-04-21 07:59:16 UTC (rev 28320)
@@ -1312,7 +1312,7 @@
/* linux uses binreloc since argv[0] is not relyable, call br_init( NULL ) first */
path = br_find_exe( NULL );
if (path) {
- strcpy(fullname, path);
+ BLI_strncpy(fullname, path, sizeof(fullname));
free(path);
return;
}
More information about the Bf-blender-cvs
mailing list