[SSSD] [PATCH] pysss: test return value of realloc.

Pavel Reichl preichl at redhat.com
Wed Aug 27 15:10:21 UTC 2014


On 08/27/2014 10:09 AM, Lukas Slebodnik wrote:
> ehlo,
>
> warning reported by coverity
>
> patch is attached
>
> LS
As I understand the code there is no way that 0 could be passed as 
second argument to the realloc call, right? Because that would lead to 
freeing same memory twice.

Would it be more defensive approach to test for zero argument 
explicitly? What do you think Lukas?

Thanks!

>
> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140827/29289ea4/attachment.html>


More information about the sssd-devel mailing list