Blender Git Loki

Git Commits -> Revision 062dfab

Revision 062dfab by Bastien Montagne (master)
October 2, 2020, 09:47 (GMT)
Cleanup: readfile for workspaces: NULLify non-owned data pointers.

`workspace_hook` of wmWindows store pointers for runtime data and to
data belonging to other IDs (workspace's layouts). That kind of pointers
should always be cleaned up on read, it allows for cleaner segfault
crash in case of mistakes in code updating/re-setting them, and avoids
potential security issue of accessing random memory address.

No behavioral change expected here.

Commit Details:

Full Hash: 062dfab159d3c8e27635c0cd91b15d6736eb61b7
Parent Commit: 6219d0d
Lines Changed: +11, -4

1 Modified Path:

/source/blender/blenloader/intern/readfile.c (+11, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021