Re: [ovs-dev] [PATCHv2] ovsdb-idl: Fix NULL deref reported by Coverity.

2020-05-20 Thread William Tu
On Mon, May 18, 2020 at 02:14:36PM -0700, Yifeng Sun wrote: > Thanks William. > > Reviewed-by: Yifeng Sun > Thanks, applied to master. William ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCHv2] ovsdb-idl: Fix NULL deref reported by Coverity.

2020-05-18 Thread Yifeng Sun
Thanks William. Reviewed-by: Yifeng Sun On Fri, May 15, 2020 at 6:47 AM William Tu wrote: > When 'datum.values' or 'datum.keys' is NULL, some code path calling > into ovsdb_idl_txn_write__ triggers NULL deref. > > An example: > ovsrec_open_vswitch_set_cur_cfg(const struct ovsrec_open_vswitch

[ovs-dev] [PATCHv2] ovsdb-idl: Fix NULL deref reported by Coverity.

2020-05-15 Thread William Tu
When 'datum.values' or 'datum.keys' is NULL, some code path calling into ovsdb_idl_txn_write__ triggers NULL deref. An example: ovsrec_open_vswitch_set_cur_cfg(const struct ovsrec_open_vswitch { struct ovsdb_datum datum; union ovsdb_atom key; datum.n = 1; datum.keys =