Re: [Linuxptp-devel] [PATCH 1/4] ts2phc: Fix uninitialized variable in nmea_scan_rmc

2021-07-18 Thread Richard Cochran
On Fri, May 14, 2021 at 01:33:41PM +0200, Lars Munch wrote: > tm_isdst needs to be initialized to make sure mktime does not fail > on recent versions of glibc > > See: > https://bugzilla.redhat.com/show_bug.cgi?id=1653340 > https://sourceware.org/bugzilla/show_bug.cgi?id=24630 > > Signed-off-by:

Re: [Linuxptp-devel] [PATCH 1/4] ts2phc: Fix uninitialized variable in nmea_scan_rmc

2021-05-14 Thread Lars Munch
> Sent: Friday, 14 May 2021 19:30 > To: Geva, Erez (ext) (DI PA DCP R 3) > Cc: linuxptp-devel@lists.sourceforge.net > Subject: Re: [Linuxptp-devel] [PATCH 1/4] ts2phc: Fix uninitialized variable > in nmea_scan_rmc > > So how about the following simple explanation?

Re: [Linuxptp-devel] [PATCH 1/4] ts2phc: Fix uninitialized variable in nmea_scan_rmc

2021-05-14 Thread Geva, Erez
m: Lars Munch Sent: Friday, 14 May 2021 19:30 To: Geva, Erez (ext) (DI PA DCP R 3) Cc: linuxptp-devel@lists.sourceforge.net Subject: Re: [Linuxptp-devel] [PATCH 1/4] ts2phc: Fix uninitialized variable in nmea_scan_rmc So how about the following simple explanation? According to POSIX.1-2017 tm_is

Re: [Linuxptp-devel] [PATCH 1/4] ts2phc: Fix uninitialized variable in nmea_scan_rmc

2021-05-14 Thread Lars Munch
t measure bugs by code. Measure by complexity. > > Erez > > -Original Message- > From: Lars Munch > Sent: Friday, 14 May 2021 18:14 > To: Geva, Erez (ext) (DI PA DCP R 3) > Cc: linuxptp-devel@lists.sourceforge.net > Subject: Re: [Linuxptp-devel] [PATCH 1/4

Re: [Linuxptp-devel] [PATCH 1/4] ts2phc: Fix uninitialized variable in nmea_scan_rmc

2021-05-14 Thread Geva, Erez
/4] ts2phc: Fix uninitialized variable in nmea_scan_rmc So much work for a one-liner. I see If I can come up with a better explanation. On Fri, May 14, 2021 at 4:34 PM Geva, Erez wrote: > > Hi, > > > > I think it is better to use a short explanation how does mktime() use th

Re: [Linuxptp-devel] [PATCH 1/4] ts2phc: Fix uninitialized variable in nmea_scan_rmc

2021-05-14 Thread Lars Munch
So much work for a one-liner. I see If I can come up with a better explanation. On Fri, May 14, 2021 at 4:34 PM Geva, Erez wrote: > > Hi, > > > > I think it is better to use a short explanation how does mktime() use the > tm_isdst flag, and why should it be set to 0. > > For me the problem is

Re: [Linuxptp-devel] [PATCH 1/4] ts2phc: Fix uninitialized variable in nmea_scan_rmc

2021-05-14 Thread Geva, Erez
Hi, I think it is better to use a short explanation how does mktime() use the tm_isdst flag, and why should it be set to 0. For me the problem is that we did not comply with proper use of mktime(). Fixing glibc only revealed the bug in linuxptp. So we fix linuxptp, not trying to comply with