2a892012be8319215668ee3a099b34b561c55b25
FILE_CACHE_MAX was meant to be larger than FILE_MAX to make room for additional layers in the path. An error in the define used `FILE_MAXFILE + FILE_MAXFILE` instead of `FILE_MAXDIR + FILE_MAXFILE` causing the value to be smaller allowing a buffer overflow when passing the string into BLI_path_abs. Correct the define and call on the directory component before the file is added so it doesn't clamp the string length unnecessarily. Note that some values weren't correct since the original commit [0], although [1] moved them to a shared incorrect define. [0]:78cdc707ab[1]:cef1b9c30f
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
