Skip to content

security: record the mimalloc local patch in the vendored manifest - #1345

Merged
DeusData merged 1 commit into
mainfrom
fix/vendored-manifest-mimalloc
Jul 29, 2026
Merged

security: record the mimalloc local patch in the vendored manifest#1345
DeusData merged 1 commit into
mainfrom
fix/vendored-manifest-mimalloc

Conversation

@DeusData

Copy link
Copy Markdown
Owner

What

Release run 30497863303 blocked at Layer 8 — Vendored Dependency Integrity:

MISMATCH: vendored/mimalloc/src/options.c
  expected: 96ef01e41f4b3043118e8c801e660b1d3f185d6fb824e5298a038aee89b6a392
  actual:   192ce06ac9076445d223205fb340d8a1fc818dbf2b4c4a801dfd2c10bc6c1162

This is the check working exactly as intended, and I should have anticipated it. #1344 patched mimalloc's version banner to stop baking __DATE__/__TIME__ into every binary (build-time entropy meant two builds of identical source could never share a hash). That edit is intentional and reviewed — but an intentional change to vendored code is indistinguishable from a supply-chain edit until someone records it, which is precisely what the manifest exists to force. Updating the checksum is the review being written down.

Scope

The manifest diff is exactly one line — the options.c hash — and the new value matches the hash CI itself computed. No other vendored file moved. scripts/security-vendored.sh's remaining layers still pass on the updated tree: no subprocess/network/dangerous calls in vendored code, dlopen confined to sqlite3, 75 files checked.

Verification

The product code is unchanged from #1344, which was green on the full 3-OS local ladder: macOS 5166/0/0, Linux 6606/0/4 across 116 suites, Windows suites + guards green, macOS smoke SMOKE_EXIT=0. This commit touches only scripts/vendored-checksums.txt.

The release build blocked at Layer 8 (vendored dependency integrity):

  MISMATCH: vendored/mimalloc/src/options.c
    expected: 96ef01e4...
    actual:   192ce06a...

That is the integrity check working exactly as designed. The hardening pass
patched mimalloc's version banner to stop baking __DATE__/__TIME__ into every
binary, which is an intentional and reviewed change to vendored code -- but an
intentional change is indistinguishable from a supply-chain edit until someone
records it, which is the entire point of the manifest. Updating the recorded
checksum is the review being written down.

Scope verified before committing: the manifest diff is exactly ONE line, the
options.c hash, and it matches the hash CI computed. No other vendored file
moved. scripts/security-vendored.sh's other layers still pass on the updated
tree -- no subprocess, network or dangerous calls in vendored code, dlopen
confined to sqlite3.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
@DeusData
DeusData merged commit 72bcc34 into main Jul 29, 2026
1 check passed
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