Blender Git Loki

Git Commits -> Revision c1cdde0

Revision c1cdde0 by Ankit Meel (master)
September 29, 2020, 19:46 (GMT)
Fix T81100: ccl::Node: ASan SEGV due to bad pointer

`SOCKET_OFFSETOF` was added in the initial commit {rBec51175f1fd6c91d5}
when `offsetof` [1] was not supported well enough. GCC and LLVM
support it since C++17.

Other two changes: type and size check can be done without creating
an invalid address too.

[1] https://cppreference.com/w/cpp/types/offsetof

Reviewed By: campbellbarton, brecht

Maniphest Tasks: T81100

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

Commit Details:

Full Hash: c1cdde04e270598d4a3973d85ac98d30cc86937e
Parent Commit: 4c3047a
Lines Changed: +3, -3

1 Modified Path:

/intern/cycles/graph/node_type.h (+3, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021