From: Jérémie Galarneau Date: Fri, 24 Aug 2018 01:51:25 +0000 (-0400) Subject: Fix: size of concrete class used in memcpy of base class X-Git-Tag: v2.11.0-rc1~107 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=a38478c97d421afb0ba6271dbd8695685cd35e9f;hp=a38478c97d421afb0ba6271dbd8695685cd35e9f;p=lttng-tools.git Fix: size of concrete class used in memcpy of base class session rotation condition and evaluation objects' base class is initialized from a template to set the various method's function pointers to the functions implementing their interface. The memcpy() erroneously uses the "derived" class' size through sizeof(*obj) rather than the size of the base class through sizeof(obj->parent). Signed-off-by: Jérémie Galarneau ---