Page MenuHome

Fix T81100: ccl::Node: ASan SEGV due to bad pointer
ClosedPublic

Authored by Ankit Meel (ankitm) on Sep 28 2020, 8:02 PM.

Diff Detail

Repository
rB Blender
Branch
cclsegv (branched from master)
Build Status
Buildable 10450
Build 10450: arc lint + arc unit

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Sep 28 2020, 8:02 PM
Ankit Meel (ankitm) created this revision.
Ankit Meel (ankitm) retitled this revision from Fix T81100: ASan SEGV due to bad pointer dereference. to Fix T81100: ccl::Node: ASan SEGV due to bad pointer.Sep 28 2020, 8:41 PM
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)

@Campbell Barton (campbellbarton) I don't have a gcc compiler. Since you added the CHECK_TYPE macro, could you check if this change works on gcc ?

This revision is now accepted and ready to land.Sep 29 2020, 10:28 AM

This was required at some point since offsetof didn't work with all C++ classes, now that we have C++17 it should work with all the compilers we support as far as I can tell.