gluster-devel
[Top][All Lists]
Advanced

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

[Gluster-devel] unchecked malloc()


From: Emmanuel Dreyfus
Subject: [Gluster-devel] unchecked malloc()
Date: Sun, 26 Jan 2014 16:56:36 +0100
User-agent: MacSOUP/2.7 (unregistered for 2563 days)

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


-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]