CMake: add WITH_STRSIZE_DEBUG option, RNA support #107602

Closed
Campbell Barton wants to merge 1 commits from ideasman42/blender:pr-debug-strsize into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
Campbell Barton 16f43c8dcd CMake: add WITH_STRSIZE_DEBUG option, RNA support
Support string size debug so it can be used for regular development.

It works be writing values into strings, ensuring the buffer size
given is actually available. Developers can use this with memory
checking tools such as ASAN/valgrind to force an error when
the size of a buffer is bigger than the buffer.

Resolve remaining issue with RNA using BLI_strncpy* in generated
callback functions where the size argument didn't represent the
size of the destination buffer.
2023-05-05 15:37:39 +10:00