summaryrefslogtreecommitdiff
path: root/test/data%25252525252525252525252525253fid%25252525252525252525252525253d0715a4433...
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-11-22 22:23:58 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-11-22 22:58:04 +0100
commite269f09438ad1bfaef044c5781615cba45ab7690 (patch)
treec68bd062390f59525ae5cf061c131f52a513d1b7 /test/data%25252525252525252525252525253fid%25252525252525252525252525253d0715a4433cc2c602458cbcb2bf0b1de15d63439b%252525252525252525252525253fid%252525252525252525252525253d4e28e8a9cc2ce6e81833d71270a74f0f55a540fc%2525252525252525252525253fid%2525252525252525252525253d7f16e1c1d30f56d796b1e7f2286c9ccfdd97061f%25252525252525252525253fid%25252525252525252525253d7f16e1c1d30f56d796b1e7f2286c9ccfdd97061f&id2%25252525252525252525253d0ea23c24bf06e153bb075804e195e1733fd67d3f%252525252525252525253fid%252525252525252525253d7f16e1c1d30f56d796b1e7f2286c9ccfdd97061f%2525252525252525253fid%2525252525252525253d0ea23c24bf06e153bb075804e195e1733fd67d3f%25252525252525253fid%25252525252525253d0ea23c24bf06e153bb075804e195e1733fd67d3f%252525252525253fid%252525252525253d0ea23c24bf06e153bb075804e195e1733fd67d3f%2525252525253fid%2525252525253da80f8dcf2c6eb3b54658218bc081ee9694204dd5%25252525253fid%25252525253de16ac0a8a8c18c831e95e1a0799e919e61f5da48%252525253fid%252525253de16ac0a8a8c18c831e95e1a0799e919e61f5da48&id2%252525253de269f09438ad1bfaef044c5781615cba45ab7690%2525253fid%2525253de16ac0a8a8c18c831e95e1a0799e919e61f5da48&id2%2525253de269f09438ad1bfaef044c5781615cba45ab7690%25253fid%25253de16ac0a8a8c18c831e95e1a0799e919e61f5da48&id2%25253de269f09438ad1bfaef044c5781615cba45ab7690%253fid%253de16ac0a8a8c18c831e95e1a0799e919e61f5da48%3fid%3de16ac0a8a8c18c831e95e1a0799e919e61f5da48?id=e269f09438ad1bfaef044c5781615cba45ab7690
parent6b6067a53bd6e78215f4c39cc0d9fa2258b6e095 (diff)
Replace localtime() with localtime_r()
Since the result of localtime() is stored in a statically allocated structure, data was overwritten when a context switch occurred during (or shortly after) the execution of localtime(), potentially resulting in critical data corruption. BUG#7 and BUG#8 are likely related. This patch converts all usages of localtime() with localtime_r(), which is thread-safe. Reported-by: Baptiste Jonglez <baptiste@jonglez.org> Reported-by: Erik Saule <esaule@bmi.osu.edu> Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'test/data%25252525252525252525252525253fid%25252525252525252525252525253d0715a4433cc2c602458cbcb2bf0b1de15d63439b%252525252525252525252525253fid%252525252525252525252525253d4e28e8a9cc2ce6e81833d71270a74f0f55a540fc%2525252525252525252525253fid%2525252525252525252525253d7f16e1c1d30f56d796b1e7f2286c9ccfdd97061f%25252525252525252525253fid%25252525252525252525253d7f16e1c1d30f56d796b1e7f2286c9ccfdd97061f&id2%25252525252525252525253d0ea23c24bf06e153bb075804e195e1733fd67d3f%252525252525252525253fid%252525252525252525253d7f16e1c1d30f56d796b1e7f2286c9ccfdd97061f%2525252525252525253fid%2525252525252525253d0ea23c24bf06e153bb075804e195e1733fd67d3f%25252525252525253fid%25252525252525253d0ea23c24bf06e153bb075804e195e1733fd67d3f%252525252525253fid%252525252525253d0ea23c24bf06e153bb075804e195e1733fd67d3f%2525252525253fid%2525252525253da80f8dcf2c6eb3b54658218bc081ee9694204dd5%25252525253fid%25252525253de16ac0a8a8c18c831e95e1a0799e919e61f5da48%252525253fid%252525253de16ac0a8a8c18c831e95e1a0799e919e61f5da48&id2%252525253de269f09438ad1bfaef044c5781615cba45ab7690%2525253fid%2525253de16ac0a8a8c18c831e95e1a0799e919e61f5da48&id2%2525253de269f09438ad1bfaef044c5781615cba45ab7690%25253fid%25253de16ac0a8a8c18c831e95e1a0799e919e61f5da48&id2%25253de269f09438ad1bfaef044c5781615cba45ab7690%253fid%253de16ac0a8a8c18c831e95e1a0799e919e61f5da48%3fid%3de16ac0a8a8c18c831e95e1a0799e919e61f5da48?id=e269f09438ad1bfaef044c5781615cba45ab7690')
0 files changed, 0 insertions, 0 deletions