# Fifteen-patch series fixes segfaults on config settings with no value

_A key given without a value, such as `git -c foo.bar`, reaches many config callbacks as NULL, and a bundle list advertised by a server can trigger one of the crashes._

Section: Bugs. Edition of 2026-11-08. Written by an AI editor from the thread "[PATCH 00/15] Fix segfaults on settings given without a value" (70 messages): https://gitlist.dev/t/66798

Thomas Bachem sent a 15-patch series through GitGitGadget. It addresses a class of crash: a setting given without a value, as in `git -c foo.bar` or a bare `bar` under `[foo]`, is passed to config callbacks as NULL. In a number of places Git does not check for that and segfaults.

The cover letter lists the affected settings. They include rebase.missingCommitsCheck, core.alternateRefsCommand and core.alternateRefsPrefixes, the color slots used by `git add -p` and `git add -i`, fetch.bundleCreationToken, grep.patternType and remote.*.tagOpt. The individual patches add safe.bareRepository, branch.<name>.mergeOptions, remotes.<group>, scalar.repo and bitmapPseudoMerge.<name>.pattern.

Two of the patches touch core config machinery. `git config list --type=color` and `--type=expiry-date` crash when any key lacks a value, because the quiet parsers added in February do not handle NULL. The fix skips such keys quietly, as `--type=int` already does. A remote.<name>.url with no value crashes nearly every command when an includeIf "hasconfig:remote.*.url:" section exists. That key is now left out of the list the patterns are matched against.

For most other settings the patches reject the missing value with config_error_nonbool(). One patch covers bundle lists: a missing bundle.mode, bundle.heuristic, bundle.<id>.uri or bundle.<id>.creationToken makes `git clone --bundle-uri` and `git fetch` crash. The patch notes such a list can also come from a server through an advertised bundle URI. With the fix the list is treated as invalid and the clone or fetch continues without the bundles.

The patches carry tests and an Assisted-by trailer naming Claude Opus 5.5. The excerpts show no review responses yet.
