Blender Git Commit Log

Git Commits -> Revision bacfc9e

Revision bacfc9e by Campbell Barton (master)
October 21, 2007, 09:32 (GMT)
fix for crash's in file selector.
- on unix BLI_diskfree was only using 100 chars for the dir name, and
not checking if the name given was longer, increased to FILE_MAXDIR
(160) and added a check, return -1 if its too long.

The file selector only allowed 80 chars to be typed into the directory
entry.

Made the file selector check that the path is less then FILE_MIXDIR, if
you try and enter a path thats longer it will tell you that the path is
too long, before it was writing into other memory and crashing.

Commit Details:

Full Hash: bacfc9eb91f10871a2ba9c3b35e48c3895dffac3
SVN Revision: 12318
Parent Commit: 3a04520
Lines Changed: +33, -16

4 Modified Paths:

/source/blender/blenlib/intern/storage.c (+7, -4) (Diff)
/source/blender/src/filesel.c (+15, -7) (Diff)
/source/blender/src/header_filesel.c (+1, -1) (Diff)
/source/blender/src/usiblender.c (+10, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021