Re: [External] [PATCH] error-report: fix crash when compute iso8061 time

2022-04-28 Thread 何磊
Fine, just ignore this patch. > On Apr 28, 2022, at 4:58 PM, Marc-André Lureau > wrote: > > Hi > > On Thu, Apr 28, 2022 at 4:15 AM Lei He wrote: >> >> g_get_real_time() returns the number of MICROSECONDS since >> January 1, 1970 UTC, but g_date_time_new_from_unix_utc() expects >> a timestamp

Re: [PATCH] error-report: fix crash when compute iso8061 time

2022-04-28 Thread Marc-André Lureau
Hi On Thu, Apr 28, 2022 at 4:15 AM Lei He wrote: > > g_get_real_time() returns the number of MICROSECONDS since > January 1, 1970 UTC, but g_date_time_new_from_unix_utc() expects > a timestamp in SECONDS. > > Directly call g_data_time_new_from_unix_utc(g_get_real_time()) causes > overflow and a N

[PATCH] error-report: fix crash when compute iso8061 time

2022-04-27 Thread Lei He
g_get_real_time() returns the number of MICROSECONDS since January 1, 1970 UTC, but g_date_time_new_from_unix_utc() expects a timestamp in SECONDS. Directly call g_data_time_new_from_unix_utc(g_get_real_time()) causes overflow and a NULL pointer is returned, then qemu crashes. Use g_date_time_new