git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ban mktemp(3)
@ 2025-12-03 10:45 René Scharfe
  2025-12-03 10:51 ` [PATCH 1/4] wrapper: add git_mkdtemp() René Scharfe
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: René Scharfe @ 2025-12-03 10:45 UTC (permalink / raw)
  To: Git List

mktemp(3) is insecure and POSIX.1-2008 no longer specifies it.  Stop
using it.

  wrapper: add git_mkdtemp()
  compat: use git_mkdtemp()
  compat: remove mingw_mktemp()
  banned.h: ban mktemp(3)

 banned.h             |  3 +++
 compat/mingw-posix.h |  3 ---
 compat/mingw.c       | 12 ------------
 compat/mkdtemp.c     |  4 +---
 wrapper.c            | 17 +++++++++++++++--
 wrapper.h            |  2 ++
 6 files changed, 21 insertions(+), 20 deletions(-)

-- 
2.52.0

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2025-12-08 20:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-03 10:45 [PATCH 0/4] ban mktemp(3) René Scharfe
2025-12-03 10:51 ` [PATCH 1/4] wrapper: add git_mkdtemp() René Scharfe
2025-12-04 11:51   ` Chris Torek
2025-12-05 23:05   ` Junio C Hamano
2025-12-03 10:52 ` [PATCH 2/4] compat: use git_mkdtemp() René Scharfe
2025-12-03 16:11   ` Jeff King
2025-12-05 12:11     ` René Scharfe
2025-12-06  2:11       ` Jeff King
2025-12-05 23:05     ` Junio C Hamano
2025-12-03 10:52 ` [PATCH 3/4] compat: remove mingw_mktemp() René Scharfe
2025-12-03 10:53 ` [PATCH 4/4] banned.h: ban mktemp(3) René Scharfe
2025-12-03 16:12   ` Jeff King
2025-12-06 13:21 ` [PATCH v2 0/5] " René Scharfe
2025-12-06 13:27   ` [PATCH v2 1/5] wrapper: add git_mkdtemp() René Scharfe
2025-12-06 13:27   ` [PATCH v2 2/5] compat: use git_mkdtemp() René Scharfe
2025-12-06 13:28   ` [PATCH v2 3/5] compat: remove mingw_mktemp() René Scharfe
2025-12-06 13:29   ` [PATCH v2 4/5] banned.h: ban mktemp(3) René Scharfe
2025-12-06 13:35   ` [PATCH v2 5/5] compat: remove gitmkdtemp() René Scharfe
2025-12-08 20:33   ` [PATCH v2 0/5] ban mktemp(3) Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).