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

Ilya Maximets i.maximets at ovn.org
Fri Aug 23 21:37:00 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>

Thanks! Applied to master and backported.

Best regards, Ilya Maximets.

More information about the dev mailing list