[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fw: New Defects reported by Coverity Scan for gpsd-gitlab
From: |
Greg Troxel |
Subject: |
Re: Fw: New Defects reported by Coverity Scan for gpsd-gitlab |
Date: |
Tue, 26 Jan 2021 08:49:15 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) |
"Gary E. Miller" <gem@rellim.com> writes:
>>>> CID 316451: (UNINIT)
>>>> Using uninitialized value "g.fix.speed" when calling "wprintw".
>>>>
> 242 (void)wprintw(navsolwin, "%6.2fm/s %5.1fo %6.2fm/s",
> 243 g.fix.speed, g.fix.track, g.fix.climb);
I tried to just read the code, and I see g is on the stack, and a bunch
of things are set from the provided data, and I can't find where speed
is ever set. So this does look like an uninitialized read.
How and where do you think g.fix.speed will have been set?
signature.asc
Description: PGP signature