> -Original Message-
> From: Paolo Bonzini [mailto:pbonz...@redhat.com]
> Sent: Tuesday, February 06, 2018 11:52 PM
> To: Gonglei (Arei); qemu-devel@nongnu.org
> Cc: shenghualong
> Subject: Re: [PATCH] vl: fix possible int overflow for qemu_timedate_diff()
>
> On 01/02/2018 12:59, Gonglei
On 01/02/2018 12:59, Gonglei wrote:
> From: shenghualong
>
> When the Windows guest users set the time to year 2099,
> the return value of qemu_timedate_diff() will overflow
> with variable clock mode as below format:
>
>
>
> Let's change the return value of qemu_timedate_diff() from
> int to
From: shenghualong
When the Windows guest users set the time to year 2099,
the return value of qemu_timedate_diff() will overflow
with variable clock mode as below format:
Let's change the return value of qemu_timedate_diff() from
int to time_t to fix the possible overflow problem.
Signed-of