[ovs-dev] [PATCH] ofproto-dpif: Fix using uninitialised memory in user_action_cookie.

Ben Pfaff blp at ovn.org
Thu Aug 22 22:34:49 UTC 2019

On Thu, Jul 25, 2019 at 07:31:04PM +0300, Ilya Maximets wrote:
> Designated initializers are not suitable for initializing non-packed
> structures and unions which are subjects for comparison by memcmp().
> Whole memory for 'struct user_action_cookie' must be explicitly cleared
> before using because it will be copied with memcpy and later compared
> by memcmp in ofpbuf_equal().

Acked-by: Ben Pfaff <blp at ovn.org>

More information about the dev mailing list