diff options
author | Jeff King <peff@peff.net> | 2020-12-01 13:11:37 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-01 14:37:27 -0800 |
commit | 1fbfdf556f2abc708183caca53ae4e2881b46ae2 (patch) | |
tree | 722feecb837c8e7d03a7299ad75c6b6e6e1146d9 /t/t4038-diff-combined.sh | |
parent | Ninth batch (diff) | |
download | tgif-1fbfdf556f2abc708183caca53ae4e2881b46ae2.tar.xz |
banned.h: mark non-reentrant gmtime, etc as banned
The traditional gmtime(), localtime(), ctime(), and asctime() functions
return pointers to shared storage. This means they're not thread-safe,
and they also run the risk of somebody holding onto the result across
multiple calls (where each call invalidates the previous result).
All callers should be using their reentrant counterparts.
Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4038-diff-combined.sh')
0 files changed, 0 insertions, 0 deletions