Re: [PATCH] rtc-efi: check for invalid data coming back from UEFI

2014-06-26 Thread joeyli
On Mon, Jun 02, 2014 at 03:09:16PM +0100, Jan Beulich wrote: > In particular seeing zero in eft->month is problematic, as it results > in -1 (converted to unsigned int, i.e. yielding 0x) getting > passed to rtc_year_days(), where the value gets used as an array index > (normally resulting i

[PATCH] rtc-efi: check for invalid data coming back from UEFI

2014-06-02 Thread Jan Beulich
In particular seeing zero in eft->month is problematic, as it results in -1 (converted to unsigned int, i.e. yielding 0x) getting passed to rtc_year_days(), where the value gets used as an array index (normally resulting in a crash). This was observed with the driver enabled on x86 on some