Re: [PATCH 1/3] Don't call qsort() over NULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2021-06-14 at 13:06 +0200, Michal Privoznik wrote:
> In a few places it may happen that the array we want to sort is
> still NULL (e.g. because there were no leases found, no paths for
> secdriver to lock or no cache banks). However, passing NULL to
> qsort() is undefined and even though glibc plays nicely we
> shouldn't rely on undefined behaviour.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

Reviewed-by: Tim Wiederhake <twiederh@xxxxxxxxxx>





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux