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

Re: [Libosinfo] [PATCH] loader: Negative loop bound






On Tue, May 27, 2014 at 10:19 AM, Christophe Fergeau <cfergeau 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 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

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