git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/10] Fix segfaults when using the unsafe SHA1 backend
@ 2024-12-30 14:24 Patrick Steinhardt
  2024-12-30 14:24 ` [PATCH 01/10] bulk-checkin: fix segfault with " Patrick Steinhardt
                   ` (9 more replies)
  0 siblings, 10 replies; 19+ messages in thread
From: Patrick Steinhardt @ 2024-12-30 14:24 UTC (permalink / raw)
  To: git; +Cc: Taylor Blau, Junio C Hamano

Hi,

this patch series fixes two segfaults when using the unsafe SHA1
backend. The segfaults are caused by us mixing safe and unsafe variants
of the API. As such, it only surfaces when actually building Git with an
unsafe backend that is different from the safe one.

I noticed those errors while wiring up the build option in the Meson
build system. As such, this patch series doesn't only fix the segfaults,
but also includes patches for the Meson infrastructure and is structured
as follows:

  - Patches 1 and 2 fix the segfaults.

  - Patch 3 makes the segfaults visible via our CI.

  - Patches 4 to 10 wire up the build infrastructure in Meson.

Given that we're close to the release of Git v2.48 I'd be fine with
merging just the first three patches. I can then re-send the Meson stuff
early in the next development cycle.

Thanks!

Patrick

---
Patrick Steinhardt (10):
      bulk-checkin: fix segfault with unsafe SHA1 backend
      builtin/fast-import: fix segfault with unsafe SHA1 backend
      ci: exercise unsafe OpenSSL backend
      meson: consistenlty spell 'CommonCrypto'
      meson: deduplicate access to SHA1/SHA256 backend options
      meson: require SecurityFramework when it's used as SHA1 backend
      meson: simplify conditions for HTTPS and SHA1 dependencies
      meson: add missing dots for build options
      meson: wire up unsafe SHA1 backend
      meson: provide a summary of configured backends

 builtin/fast-import.c     |  2 +-
 bulk-checkin.c            |  2 +-
 ci/run-build-and-tests.sh |  1 +
 meson.build               | 51 ++++++++++++++++++++++++++++++++++++-----------
 meson_options.txt         |  8 +++++---
 5 files changed, 47 insertions(+), 17 deletions(-)


---
base-commit: 306ab352f4e98f6809ce52fc4e5d63fb947d0635
change-id: 20241230-pks-meson-sha1-unsafe-03c785824eee


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

end of thread, other threads:[~2025-01-09  5:58 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-30 14:24 [PATCH 00/10] Fix segfaults when using the unsafe SHA1 backend Patrick Steinhardt
2024-12-30 14:24 ` [PATCH 01/10] bulk-checkin: fix segfault with " Patrick Steinhardt
2024-12-30 14:24 ` [PATCH 02/10] builtin/fast-import: " Patrick Steinhardt
2024-12-30 17:22   ` [PATCH 02/10] builtin/fast-import: fix segfault with unsafe SHA1 Taylor Blau
2025-01-03 13:08     ` Patrick Steinhardt
2025-01-03 16:25       ` Junio C Hamano
2025-01-06 19:17       ` Taylor Blau
2025-01-07 12:06         ` Patrick Steinhardt
2025-01-08 19:21           ` Taylor Blau
2025-01-09  5:57             ` Patrick Steinhardt
2024-12-30 14:24 ` [PATCH 03/10] ci: exercise unsafe OpenSSL backend Patrick Steinhardt
2024-12-30 17:31   ` Taylor Blau
2024-12-30 14:24 ` [PATCH 04/10] meson: consistenlty spell 'CommonCrypto' Patrick Steinhardt
2024-12-30 14:24 ` [PATCH 05/10] meson: deduplicate access to SHA1/SHA256 backend options Patrick Steinhardt
2024-12-30 14:24 ` [PATCH 06/10] meson: require SecurityFramework when it's used as SHA1 backend Patrick Steinhardt
2024-12-30 14:24 ` [PATCH 07/10] meson: simplify conditions for HTTPS and SHA1 dependencies Patrick Steinhardt
2024-12-30 14:24 ` [PATCH 08/10] meson: add missing dots for build options Patrick Steinhardt
2024-12-30 14:24 ` [PATCH 09/10] meson: wire up unsafe SHA1 backend Patrick Steinhardt
2024-12-30 14:24 ` [PATCH 10/10] meson: provide a summary of configured backends Patrick Steinhardt

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).