Re: [ovs-dev] [PATCH] conntrack.c: Add missing return value check to prevent nptr dereference.

2018-08-15 Thread Aaron Conole
Jiecheng Wu writes: > Function ovs_ct_limit_cmd_get() defined in net/openvswitch/conntrack.c may > cause a null pointer dereference as it calls nla_nest_start which may return > NULL. The returned value is used in function nla_nest_end() later where the > pointer is dereferenced. > --- >

[ovs-dev] [PATCH] conntrack.c: Add missing return value check to prevent nptr dereference.

2018-08-14 Thread Jiecheng Wu
Function ovs_ct_limit_cmd_get() defined in net/openvswitch/conntrack.c may cause a null pointer dereference as it calls nla_nest_start which may return NULL. The returned value is used in function nla_nest_end() later where the pointer is dereferenced. --- net/openvswitch/conntrack.c | 4