diff options
author | Ankit Meel <ankitm> | 2020-09-29 22:31:58 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2020-09-29 22:46:02 +0300 |
commit | c1cdde04e270598d4a3973d85ac98d30cc86937e (patch) | |
tree | a126c0c35d4fb1c2b3ec9036077c8582b33cd20b /source/blender/python/mathutils | |
parent | 4c3047a9cdff686411077b1ccd5709eb221bf41a (diff) |
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
Diffstat (limited to 'source/blender/python/mathutils')
0 files changed, 0 insertions, 0 deletions