[Gluster-devel] unchecked malloc()

Lalatendu Mohanty lmohanty at redhat.com
Mon Jan 27 07:40:16 UTC 2014


On 01/26/2014 09:26 PM, Emmanuel Dreyfus wrote:
> Hi
>
> I just hit an unchecked malloc bug. A quick search found many others. I
> fixed a few in the change below, but it seems there are many more.
> strdup() are also very often unchecked. Should all the code be converted
> to gf_strdup, and an assert() added in gf_strdup()?
>
> And how could Coverity miss that obvious bugs?
>
> http://review.gluster.org/6796
>
>
Just did a quick check on latest Coverity scan results and like you 
mentioned Coverity did not report these issues and the issue is present 
in the code. May be I should send a mail about it to 
"/scan-admin at coverity.com <mailto:scan-admin at coverity.com>"

-Lala
/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20140127/d5c89f22/attachment-0001.html>


More information about the Gluster-devel mailing list