debuginfod: Use gmtime_r instead of gmtime to avoid data race
authorMark Wielaard <mark@klomp.org>
Wed, 1 Dec 2021 12:42:50 +0000 (13:42 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 3 Dec 2021 12:29:21 +0000 (13:29 +0100)
commitb4c0791d3e2ad29ee7111e8df1200bc08d6e4671
tree1e1fb6d947c09ce05710c0e1e51d14ecb928c5ea
parenta4f766fa0f77a450a41bee1f8f8948306dfa3695
debuginfod: Use gmtime_r instead of gmtime to avoid data race

Since we are multi-threaded using gmtime might cause a data race
because gmtime reuses a global struct to write data into. Make
sure that each thread uses their own struct tm and use gmtime_r
instead.

Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/ChangeLog
debuginfod/debuginfod.cxx