[ovs-dev] [PATCHv2 2/2] ovn-sbctl: Fix possible null pointer to qsort.

Ben Pfaff blp at ovn.org
Wed Nov 1 20:08:42 UTC 2017


On Tue, Oct 31, 2017 at 05:29:51PM -0700, William Tu wrote:
> Clang reports possible null pointer 'lflows' passed to qsort.
> This is due to the checker unable to make sure whether 'lflows'
> gets malloc or not in the previous loop.  Fix it by checking the
> 'n_flows' before calling qsort.
> 
> Signed-off-by: William Tu <u9012063 at gmail.com>

Thanks for the patches!  I applied both of these to master.


More information about the dev mailing list