Blender Git Loki

Git Commits -> Revision 5f52684

Revision 5f52684 by Michael - (master)
December 15, 2021, 14:46 (GMT)
Initialize the fourth and final instance variable of MemoryProxy

The constructor of MemoryProxy initializes 3 of 4 instances variables.
If a MemoryProxy is constructed and MemoryProxy::free is called
on this instance, buffer_ is undefined and 'delete buffer_;' causes errors.

Although this misuse pattern does not exist in the current codebase
it already tripped up the Address Sanitizer on various occasions
while debugging unrelated problems.

Reviewed By: jbakker

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

Commit Details:

Full Hash: 5f52684a0f13bf265308af299b9e23214f3d2300
Parent Commit: 1a833db
Committed By: Jeroen Bakker
Lines Changed: +1, -0

1 Modified Path:

/source/blender/compositor/intern/COM_MemoryProxy.cc (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021