Fix: size of concrete class used in memcpy of base class
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 24 Aug 2018 01:51:25 +0000 (21:51 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 24 Aug 2018 01:51:25 +0000 (21:51 -0400)
commita38478c97d421afb0ba6271dbd8695685cd35e9f
tree390f1a112268d62168fde86458147349ce066674
parent88a5c0a9ce2333f12a1bd5d6b0ea527b86cde819
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 <jeremie.galarneau@efficios.com>
src/common/session-rotation.c
This page took 0.026247 seconds and 5 git commands to generate.