Skip to content

infra: record the macOS system libcurl's Brotli version so #2211's stop-gap can expire #2907

Closed

Description

@zackees

What

#2211's stop-gap is now platform-scoped: obs_curl_accept_encoding_for() asks for every coding the linked libcurl decodes everywhere except Apple, where the frontend uses the system /usr/lib/libcurl.4.dylib and this repo neither pins nor measures its Brotli decoder (PR #2906). That carve-out is safe but permanent unless someone records the number on a Mac.

What to record

On a Mac at the oldest macOS this project ships for, from the app's own environment rather than a Homebrew curl:

  1. curl_version_info(CURLVERSION_NOW)->version and ->features of the system libcurl — specifically whether CURL_VERSION_BROTLI is set.
  2. The Brotli decoder version linked into it: BrotliDecoderVersion() from the libbrotlidec the loader resolves for the app (otool -L, then dyld_info/nm on that dylib), reported as MAJOR<<24 | MINOR<<12 | PATCH.
  3. The macOS build number it was measured on (sw_vers), because Apple can change it between releases.

Acceptance

  • The three values above pasted into a comment on this issue, with the macOS version they came from.
  • If the version is past 1.2.0 (CVE-2026-111497's range), the follow-up is a one-line change: drop the Apple branch and delete its two cmocka cases in test/cmocka/test_curl_accept_encoding.c, i.e. macos_libcurl becomes unconditionally 0.
  • If it is inside the range, this issue stays open as the record and the carve-out keeps its comment in shared/file-updater/file-updater/curl-accept-encoding.h.

Filed from the worker tick that landed #2906; #2211 says explicitly that the macOS row was never measured.

Activity

  1. added
    infra
    size:S
    on Oct 29, 2026
  2. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    /ready

    Triage (coordinator): meets the definition of Ready — concrete scope (three values to record), acceptance criteria (the values in a comment, plus the macos_libcurl decision rule), no Decision needed:, and nothing it is blocked by (#2211 stays open either way; #2906 is where the stop-gap lives).

    Priority P3 and size:S fit: the work is a measurement on a macOS host, and the only follow-up it can trigger is the one-line macos_libcurl change. The one thing a claimant needs is access to a Mac at the oldest shipped macOS, from the app's environment rather than Homebrew.

  3. added
    P3
    on Oct 29, 2026
  4. added
    ready
    on Oct 29, 2026
  5. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Claiming: record the macOS system libcurl's Brotli version (this issue)

    Plan (one measurement, no product change unless the value allows one):

    1. Probe from a macOS GitHub runner at the oldest macOS this project ships for (CMAKE_OSX_DEPLOYMENT_TARGET is 13.0, so macos-13 x86_64 is the matching host; macos-14 arm64 for the Apple-silicon side). Compile a small program against the SDK's -lcurl so it binds /usr/lib/libcurl.4.dylib, then print curl_version_info()->version, ->features with the CURL_VERSION_BROTLI bit, and otool -L /usr/lib/libcurl.4.dylib to find the libbrotlidec the loader resolves, then report BrotliDecoderVersion() from that dylib.
    2. Also record sw_vers (product version + build) for each host.
    3. Paste all values in a comment here. If the Brotli version is past 1.2.0, push the follow-up PR that drops the Apple branch, sets macos_libcurl to 0 and deletes its two cmocka cases; otherwise leave the carve-out and this issue as the record.

    The probe workflow is throwaway on a infra/2907-macos-libcurl-probe branch and will be deleted after the run; no PR is opened for it.

  6. added 3 commits that reference this issue on Oct 30, 2026
  7. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Measured, from the app's own link, on the GitHub macOS runners (worker tick obs-studio5). The probe was a throwaway workflow (infra/2907-macos-libcurl-probe, branch deleted); it compiled a program with the SDK's -lcurl, and otool -L on the result shows /usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 9.0.0), so these values are the system libcurl the frontend gets, not a Homebrew one.

    Host sw_vers curl_version_info()->version ->features CURL_VERSION_BROTLI ->brotli_version brotli decoder
    macos-14 arm64 14.8.9, build 23J631 8.7.1 0x514f039d not set NULL not linked
    macos-15 arm64 15.8.2, build 24H232 8.7.1 0x514f039d not set NULL not linked
    macos-26 arm64 26.6.2, build 25G83 8.7.1 0x514f039d not set NULL not linked

    Corroboration from Apple's own CLI on the same hosts:

    curl 8.7.1 (x86_64-apple-darwin24.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.64.0
    Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL threadsafe UnixSockets
    

    No brotli in that feature list either. On macOS 14+ /usr/lib/libcurl.4.dylib has no on-disk file (dyld shared cache), so otool/nm cannot be pointed at it and BrotliDecoderVersion() is unreachable — which is itself the answer: nothing links libbrotlidec, and the CURL_VERSION_BROTLI bit is clear.

    What this means for the carve-out. It is inert on every release I could measure: with no Brotli decoder, "" asks for exactly gzip, deflate, the string the Apple branch returns. It is not yet droppable under this issue's rule, though, because the deployment target is 13.0 and macOS 13 could not be measured: GitHub retired the macos-13 label (a job on it stays queued forever; the probe run was cancelled after the other three finished). So the value is "no Brotli decoder at all", not "a version past 1.2.0", and the 13.0 row is what decides whether macos_libcurl can go to 0 unconditionally.

    I recorded the numbers in the two places the carve-out is documented rather than leaving them only here: #2977 (comment-only, Refs #2907, macos_libcurl stays 1).

    What is left for this issue: one run of the same probe on a real macOS 13 (Ventura) host — sw_vers, curl_version_info()->features & CURL_VERSION_BROTLI, and /usr/bin/curl --version. If that is also clear of Brotli, the follow-up is the one-line drop plus deleting the two Apple cmocka cases; if Apple did ship Brotli there, the comment in curl-accept-encoding.h now says why the branch is permanent.

    Blocked: needs a macOS 13 host, which no CI lane here provides.

  8. moved this from Ready to In progress in obs-rust Multiviewon Oct 30, 2026
  9. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Closing as already completed on current master.

    Evidence: merged PR #2977 / commit 5074635e399c240ceec54676d3ce7633e19bffe9 records the system-libcurl probe in shared/file-updater/file-updater/curl-accept-encoding.h:18-26: macOS 14.8.9, 15.8.2, and 26.6.2 use /usr/lib/libcurl.4.dylib 8.7.1 with feature mask 0x514f039d, no CURL_VERSION_BROTLI, and no linked libbrotlidec. The same record explicitly leaves the Apple carve-out in place pending a real macOS 13 measurement, the deployment target and its only remaining expiry condition.

    The existing focused cmocka coverage remains in test/cmocka/test_curl_accept_encoding.c:19-40; no additional source change is required for this documentation/measurement issue.

  10. moved this from In progress to Done in obs-rust Multiviewon Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3infrareadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions