Page MenuHomePhabricator

util: Avoid potential uninitialized read in FormatISO8601DateTime(int64_t nTime) by checking gmtime_s/gmtime_r return value
ClosedPublic

Authored by Fabien on Nov 1 2020, 16:58.

Details

Summary
The same goes for other very large positive and negative arguments.

Fix by simply checking the gmtime_s/gmtime_r return value :)

Backport of core PR18162.

Test Plan
ninja all check-all