[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5660F533.1070705@oracle.com>
Date: Thu, 3 Dec 2015 21:06:43 -0500
From: Sasha Levin <sasha.levin@...cle.com>
To: Alexandre Belloni <alexandre.belloni@...e-electrons.com>
Cc: a.zummo@...ertech.it, rtc-linux@...glegroups.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rtc: fix overflow and incorrect calculation in
rtc_time64_to_tm
On 12/03/2015 08:55 PM, Alexandre Belloni wrote:
> On 03/12/2015 at 19:12:24 -0500, Sasha Levin wrote :
>> > At some point after humans go extinct and robots cotrol the world, dividing
>> > he time64_t by 86400 to extract the days will overflow a 32bit integer,
>> > leading to incorrect conversion into rtc_time in rtc_time64_to_tm().
>> >
> And at that time, the robots won't care about 32bit platforms :)
One can only hope... :)
I'll resend.
Thanks,
Sasha
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists