diff options
author | Mark Wielaard <mark@klomp.org> | 2021-12-01 13:42:50 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-12-03 13:29:21 +0100 |
commit | b4c0791d3e2ad29ee7111e8df1200bc08d6e4671 (patch) | |
tree | 1e1fb6d947c09ce05710c0e1e51d14ecb928c5ea /debuginfod/ChangeLog | |
parent | a4f766fa0f77a450a41bee1f8f8948306dfa3695 (diff) | |
download | elfutils-b4c0791d3e2ad29ee7111e8df1200bc08d6e4671.tar.gz |
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>
Diffstat (limited to 'debuginfod/ChangeLog')
-rw-r--r-- | debuginfod/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog index 822bd637..625dead0 100644 --- a/debuginfod/ChangeLog +++ b/debuginfod/ChangeLog @@ -1,3 +1,8 @@ +2021-12-01 Mark Wielaard <mark@klomp.org> + + * debuginfod-client.c (timestamp): Use gmtime_r instead of gmtime. + (add_mhd_last_modified): Likewise. + 2021-11-10 Érico N. Rolim <erico.erc@gmail.com> * debuginfod.cxx: include "system.h" under 'extern "C"' block. |