[Libosinfo] [PATCH] loader: Negative loop bound

Fabiano Fidêncio fabiano at fidencio.org
Tue May 27 09:04:06 UTC 2014


On Tue, May 27, 2014 at 10:19 AM, Christophe Fergeau <cfergeau at redhat.com>
wrote:

> On Tue, May 27, 2014 at 12:18:29AM +0200, Fabiano Fidêncio wrote:
> > On Mon, May 26, 2014 at 6:11 PM, Christophe Fergeau <cfergeau at redhat.com
> >
> > wrote:
> >
> > > If this is causing warnings from coverity, it would be better if we did
> > > something about it.
> > >
> >
> > What is your suggestion?
>
> What is coverity saying exactly? Is it only complaining about this
> particular use of g_return_val_if_fail?
>

This is exactly what coverity says:

"62584 Negative loop bound
Loop may run for a long time or not at all.
In osinfo_loader_os: Negative value used as a loop upper bound (CWE-606)"

Best Regards,
-- 
Fabiano Fidêncio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20140527/227f06e6/attachment.htm>


More information about the Libosinfo mailing list