Blender Git Commit Log

Git Commits -> Revision 0a87fd4

October 1, 2020, 13:37 (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: 0a87fd4b9293587fc9ad0f01d8003511965f5b3f
Parent Commit: fe0b6b5
Committed By: YimingWu
Lines Changed: +3, -3

1 Modified Path:

/intern/cycles/graph/node_type.h (+3, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021