Re: [PATCH v2] udf: udftime: prevent overflow in udf_disk_stamp_to_time()
From: Sergey Shtylyov
Date: Wed Mar 27 2024 - 11:24:43 EST
On 3/27/24 4:27 PM, Roman Smirnov wrote:
> An overflow can occur in a situation where src.centiseconds
> takes the value of 255. This situation is unlikely, but there
> is no validation check anywere in the code.
>
> Found by Linux Verification Center (linuxtesting.org) with Svace.
>
> Suggested-by: Jan Kara <jack@xxxxxxx>
> Signed-off-by: Roman Smirnov <r.smirnov@xxxxxx>
Reviewed-by: Sergey Shtylyov <s.shtylyov@xxxxxx>
[...]
MBR, Sergey