Blender Git Commit Log

Git Commits -> Revision c6e7fc9

Revision c6e7fc9 by Michael - (master)
December 22, 2021, 20:49 (GMT)
Fix: Large stack allocation in compositor

When COM_EXPORT_GRAPHVIZ is enabled, DebugInfo::graphviz
uses a char[1000000] as local variable. When this function
is called this is allocated on the stack, which has a size
of just 1MB on mac and may cause a stack overflow.

This patch allocates the memory on the heap and frees
the memory at the end of the function.

Reviewed By: LazyDodo

Differential Revision: https://developer.blender.org/D13628

Commit Details:

Full Hash: c6e7fc97443ebc5ae44c07fc81b3e7eb2cf4f325
Parent Commit: 0fd72a9
Committed By: Ray molenkamp
Lines Changed: +4, -2

1 Modified Path:

/source/blender/compositor/intern/COM_Debug.cc (+4, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021