gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] Uninitialised data


From: Gary E. Miller
Subject: Re: [gpsd-dev] Uninitialised data
Date: Thu, 14 Jul 2016 18:37:08 -0700

Yo Ferry!

Thanks for the patch.  I've been on the road and behind on patches.
Looks like you found an interesting case.

I just pushed your patch after looking at the surronding Code.

Wow, that PRIVATE() stuff is some weird code.  I'll bet there are
more bugs in there...

On Thu, 14 Jul 2016 16:28:02 +0200
Ferry Huberts <address@hidden> wrote:

> I'm on the list now
> 
> On 14/07/16 14:43, Ferry Huberts wrote:
> > Forgot to mention:
> >
> > Fedora 24 has gpsd-3.16-2.fc24.x86_64
> >
> > On 14/07/16 14:42, Ferry Huberts wrote:  
> >> Hi,
> >>
> >> I'm on Fedora 24 and valgrind complains about uninitialised data:
> >>  
> >>> $ valgrind --track-origins=yes --leak-check=full
> >>> --show-leak-kinds=all ./Debug64/testgpsd -d 2 -c 400000 -i br0 -t
> >>> 1 -s 127.0.0.1:2947 224.0.0.224:2240 ::1:2240
> >>> ==19106== Memcheck, a memory error detector
> >>> ==19106== Copyright (C) 2002-2015, and GNU GPL'd, by Julian
> >>> Seward et al.
> >>> ==19106== Using Valgrind-3.11.0 and LibVEX; rerun with -h for
> >>> copyright info
> >>> ==19106== Command: ./Debug64/testgpsd -d 2 -c 400000 -i br0 -t 1
> >>> -s 127.0.0.1:2947 224.0.0.224:2240 ::1:2240
> >>> ==19106==
> >>> ==19106== Conditional jump or move depends on uninitialised
> >>> value(s) ==19106==    at 0x4E4B9D4: gps_sock_read (in
> >>> /usr/lib64/libgps.so.22.0.0)
> >>> ==19106==    by 0x4E48A59: gps_read
> >>> (in /usr/lib64/libgps.so.22.0.0) ==19106==    by 0x404022: main
> >>> (main.c:453) ==19106==  Uninitialised value was created by a heap
> >>> allocation ==19106==    at 0x4C2BBAD: malloc
> >>> (vg_replace_malloc.c:299) ==19106==    by 0x4E4B721:
> >>> gps_sock_open (in /usr/lib64/libgps.so.22.0.0)
> >>> ==19106==    by 0x4E489DD: gps_open
> >>> (in /usr/lib64/libgps.so.22.0.0) ==19106==    by 0x4027CF:
> >>> gpsdConnect (gpsd-util.c:48) ==19106==    by 0x403FBB: main
> >>> (main.c:443) ==19106==
> >>> testgpsd[19106]: Connected to gpsd 3.16-2.fc24 on localhost,
> >>> protocol 3.11
> >>> testgpsd[19106]: Using u-blox device SW 6.02 (36023),HW
> >>> 00040005,5.00 (28483) on /dev/ttyACM0
> >>> ...  
> >>
> >>
> >>
> >> I can fix this with the attached patch.
> >>
> >> Please consider it for inclusion.
> >>
> >> PS. I'm not on the mailing list.
> >>
> >>  
> >  
> 




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

Attachment: pgpfM6z4IybDb.pgp
Description: OpenPGP digital signature


reply via email to

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