Skip to content

Fix config key matching, missing dependency rebuilds, and string vector lifetime - #7

Merged
minelogy-dev merged 1 commit into
mainfrom
fix/config-deps-strv
Nov 3, 2026
Merged

minelogy-dev merged 1 commit into
mainfrom
fix/config-deps-strv

Conversation

@minelogy-dev

Copy link
Copy Markdown
Owner

Configuration lookup could select a compiler from another key or value, deleted headers could leave cached objects in use, and string vectors could overwrite their terminator or retain freed storage. This change fixes those cases and adds regression coverage.

  • Match compiler settings only at the beginning of a configuration key, preserving platform overrides and indentation.
  • Recompile when a recorded dependency disappears, allowing the compiler to report a missing header.
  • Reject strv_set() at count and clear vector state after destruction to make repeated cleanup safe.
  • Clarify that short options may have no long form and test standalone, clustered, attached-value and split-value short options.

Validation:

  • ./bootstrap.sh (full build; 16 tests passed).
  • bash .github/scripts/check-c.sh (warnings treated as errors).
  • bash .github/scripts/check-c.sh analyze (GCC static analysis).
  • Focused ASan/UBSan parser and string-vector tests passed during the initial review.

I confirm that I have read and agree to the license terms, including all additional permissions and additional terms, as stated in CONTRIBUTING.md.

@minelogy-dev
minelogy-dev merged commit 7a83552 into main Nov 3, 2026
7 checks passed
@minelogy-dev
minelogy-dev deleted the fix/config-deps-strv branch November 3, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant