Closed Bug 2098837 Opened 8 days ago Closed 4 days ago

Update brotli to new version 717514a67b3f8abf53365d4471a102a60fff8ef5 from 2026-11-25 13:15:51 UTC

Categories

(Core :: General, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: update-bot, Assigned: RyanVM, NeedInfo)

Details

(Whiteboard: [3pl-filed][task_id: adRgxwALT9KWJJQ3JuDWEA])

Attachments

(1 external file)

This update covers 11 commits. Here are the overall diff statistics, and then the commit information.


modules/brotli/common/static_init.h | 3 +-
modules/brotli/dec/dec_static_init.c | 1 +
modules/brotli/dec/dec_static_init_lazy.cc | 32 ++++++++++++++++++++++++++++++
modules/brotli/dec/decode.c | 5 ----
modules/brotli/dec/state.c | 4 +++
modules/brotli/enc/enc_static_init.c | 1 +
modules/brotli/moz.build | 1 +
modules/brotli/moz.yaml | 4 +-
8 files changed, 43 insertions(+), 8 deletions(-)

Commits by author:
3 lenamonj <jlenamon@gmail.com> (all unsigned)
2 huangwenbin <huangwenbin@kylinos.cn> (all unsigned)
1 Daniel Slåttnes <ievabot@proton.me> (unsigned)
1 Evgenii Kliuchnikov <eustas@google.com> (unsigned)
1 b84330808 <b84330808@gmail.com> (signed but unverified)
1 dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (signed but unverified)
1 ievav100 <ievabot@proton.me> (signed but unverified)
1 patrick-immometrica <patrick@immometrica.com> (unsigned)


6f51797cfe694a8b582b77dea26a5a261775a47d by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

https://github.com/google/brotli/commit/6f51797cfe694a8b582b77dea26a5a261775a47d
Authored: 2026-11-25 12:07:30 +0000
Committed: 2026-11-25 12:07:30 +0000

Bump the everything group across 1 directory with 8 updates

Bumps the everything group with 8 updates in the / directory:

Package From To
step-security/harden-runner 2.22.2 2.23.0
actions/setup-python 7.0.0 7.1.0
pypa/cibuildwheel 4.3.2 4.3.5
github/codeql-action/init 4.39.0 4.39.3
github/codeql-action/autobuild 4.39.0 4.39.3
github/codeql-action/analyze 4.39.0 4.39.3
bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml 1.5.1 1.7.0
github/codeql-action/upload-sarif 4.39.0 4.39.3

Updates step-security/harden-runner from 2.22.2 to 2.23.0

Updates actions/setup-python from 7.0.0 to 7.1.0

Updates pypa/cibuildwheel from 4.3.2 to 4.3.5

Updates github/codeql-action/init from 4.39.0 to 4.39.3

Updates github/codeql-action/autobuild from 4.39.0 to 4.39.3

Updates github/codeql-action/analyze from 4.39.0 to 4.39.3

Updates bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml from 1.5.1 to 1.7.0

Updates github/codeql-action/upload-sarif from 4.39.0 to 4.39.3


updated-dependencies:

  • dependency-name: actions/setup-python
    dependency-version: 7.1.0
    dependency-type: direct:production
    update-type: version-update:semver-minor
    dependency-group: everything
  • dependency-name: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml
    dependency-version: 1.6.0
    dependency-type: direct:production
    update-type: version-update:semver-minor
    dependency-group: everything
  • dependency-name: github/codeql-action/analyze
    dependency-version: 4.39.1
    dependency-type: direct:production
    update-type: version-update:semver-patch
    dependency-group: everything
  • dependency-name: github/codeql-action/autobuild
    dependency-version: 4.39.1
    dependency-type: direct:production
    update-type: version-update:semver-patch
    dependency-group: everything
  • dependency-name: github/codeql-action/init
    dependency-version: 4.39.1
    dependency-type: direct:production
    update-type: version-update:semver-patch
    dependency-group: everything
  • dependency-name: github/codeql-action/upload-sarif
    dependency-version: 4.39.1
    dependency-type: direct:production
    update-type: version-update:semver-patch
    dependency-group: everything
  • dependency-name: pypa/cibuildwheel
    dependency-version: 4.3.5
    dependency-type: direct:production
    update-type: version-update:semver-patch
    dependency-group: everything
  • dependency-name: step-security/harden-runner
    dependency-version: 2.22.3
    dependency-type: direct:production
    update-type: version-update:semver-patch
    dependency-group: everything
    ...

Signed-off-by: dependabot[bot] <support@github.com>

Files Modified:

  • .github/workflows/build_test.yml
  • .github/workflows/build_test_wasm.yml
  • .github/workflows/codeql.yml
  • .github/workflows/fuzz.yml
  • .github/workflows/lint.yml
  • .github/workflows/publish_to_bcr.yaml
  • .github/workflows/release.yaml
  • .github/workflows/scorecard.yml

c6599f45c7f180b746dab6ad79bcfa35da6a5bbf by Daniel Slåttnes <ievabot@proton.me>

https://github.com/google/brotli/commit/c6599f45c7f180b746dab6ad79bcfa35da6a5bbf
Authored: 2026-11-25 11:56:25 +0100
Committed: 2026-11-25 11:56:25 +0100

Explain release attestation permissions

Document why the Brotli release publisher needs the OIDC and attestation permissions. Prepared and tested with OpenAI Codex.

Files Modified:

  • .github/workflows/release.yaml

c301cd5cfe19c8c7a1a76c444bc2c242cbf2ab64 by ievav100 <ievabot@proton.me>

https://github.com/google/brotli/commit/c301cd5cfe19c8c7a1a76c444bc2c242cbf2ab64
Authored: 2026-11-25 01:45:42 +0100
Committed: 2026-11-25 01:45:42 +0100

Attest Brotli release assets before upload

Generate provenance for the exact files staged for the existing release upload.

Files Modified:

  • .github/workflows/release.yaml

fbadc67bfce560b92e922f5645cc95bbffe38420 by Evgenii Kliuchnikov <eustas@google.com>

https://github.com/google/brotli/commit/fbadc67bfce560b92e922f5645cc95bbffe38420
Authored: 2026-11-24 03:21:44 -0800
Committed: 2026-11-24 03:22:14 -0800

Add Android test for memory-mapping the Brotli static dictionary from a raw resource.

PiperOrigin-RevId: 1028903696

Files Added:

  • java/org/brotli/dec/android/AndroidManifest.xml
  • java/org/brotli/dec/android/BUILD.bazel
  • java/org/brotli/dec/android/SetDictionaryTest.java

Files Modified:

  • .github/workflows/build_test.yml
  • .github/workflows/codeql.yml
  • java/MODULE.bazel
  • java/MODULE.bazel.lock
  • java/org/brotli/dec/BUILD.bazel

2c70c94271cfe6e74f97dd7efe0bb7b53e6d38de by patrick-immometrica <patrick@immometrica.com>

https://github.com/google/brotli/commit/2c70c94271cfe6e74f97dd7efe0bb7b53e6d38de
Authored: 2026-11-21 10:37:06 +0100
Committed: 2026-11-21 10:37:06 +0100

cli: don't crash when stdin or stdout is closed

fdopen() returns NULL if fd 0 or 1 is not open (e.g. brotli -c x >&-),
and the NULL FILE* was then passed to fread/fwrite.

Files Modified:

  • c/tools/brotli.c

7aabfed80cf5c5f8aa213dbb2a00d4ddd332f0e0 by b84330808 <b84330808@gmail.com>

https://github.com/google/brotli/commit/7aabfed80cf5c5f8aa213dbb2a00d4ddd332f0e0
Authored: 2026-11-04 16:00:30 +0000
Committed: 2026-11-04 16:00:30 +0000

cbrotli: list libbrotlicommon last in the cgo pkg-config directive

"#cgo pkg-config: libbrotlicommon libbrotlidec libbrotlienc" makes
pkg-config emit "-lbrotlicommon -lm -lbrotlidec -lbrotlienc". With static
libraries the linker resolves archives left to right, so the symbols that
libbrotlidec / libbrotlienc need from libbrotlicommon (and log2 from libm)
are never pulled in, and linking fails with undefined references to
_kBrotliContextLookupTable, _kBrotliPrefixCodeRanges, BrotliGetDictionary,
etc. (#1189). List the dependent libraries first.

Add a step to the cmake:static CI job that installs the static libraries
and runs the cbrotli Go tests against them through pkg-config; that path
was not covered before (Bazel builds do not use the directive).

Files Modified:

  • .github/workflows/build_test.yml
  • go/cbrotli/cgo.go

676133a354bf492d2ef4f397e944eaf41c96860a by huangwenbin <huangwenbin@kylinos.cn>

https://github.com/google/brotli/commit/676133a354bf492d2ef4f397e944eaf41c96860a
Authored: 2026-09-22 17:19:02 +0800
Committed: 2026-09-22 17:19:02 +0800

cli: print successful help to stdout

Signed-off-by: huangwenbin <huangwenbin@kylinos.cn>

Files Modified:

  • c/tools/brotli.c

92077facc412743ad98327494423e6a80b4cf199 by huangwenbin <huangwenbin@kylinos.cn>

https://github.com/google/brotli/commit/92077facc412743ad98327494423e6a80b4cf199
Authored: 2026-09-22 16:54:53 +0800
Committed: 2026-09-22 16:54:53 +0800

tests: cover CLI help output streams

Signed-off-by: huangwenbin <huangwenbin@kylinos.cn>

Files Modified:

  • tests/cli_test.sh

7ba74919ba5505cc2c8f1770bb09c29000f34160 by lenamonj <jlenamon@gmail.com>

https://github.com/google/brotli/commit/7ba74919ba5505cc2c8f1770bb09c29000f34160
Authored: 2026-09-08 10:07:07 -0400
Committed: 2026-09-08 10:07:37 -0400

Drop the unused include and run the static init before the start callback

Files Modified:

  • c/dec/decode.c
  • c/dec/state.c

ccbb9bfa7617773ea7636e0db34f4c14144b23a9 by lenamonj <jlenamon@gmail.com>

https://github.com/google/brotli/commit/ccbb9bfa7617773ea7636e0db34f4c14144b23a9
Authored: 2026-09-06 03:20:44 -0400
Committed: 2026-09-06 05:08:46 -0400

CLI: refuse an output path that names the input file

Files Modified:

  • c/tools/brotli.c

7531d67c5d2b1cc72eb6b7c56296acd52e92b220 by lenamonj <jlenamon@gmail.com>

https://github.com/google/brotli/commit/7531d67c5d2b1cc72eb6b7c56296acd52e92b220
Authored: 2026-09-06 03:20:44 -0400
Committed: 2026-09-06 05:08:46 -0400

Call the lazy static initializer from EnsureStaticInit

Files Added:

  • c/dec/static_init_lazy.cc

Files Modified:

  • c/common/static_init.h
  • c/dec/decode.c
  • c/dec/state.c
  • c/dec/static_init.c
  • c/enc/static_init.c

It looks like we experienced one or more build failures when trying to apply this
update. You will need to apply this update manually; you can replicate the patch
locally with ./mach vendor modules/brotli/moz.yaml --revision 717514a67b3f8abf53365d4471a102a60fff8ef5. I'm going to abandon the Phabricator patch and
let you submit a new one.

If the build failure wasn't caused by a library change, and was instead caused by
something structural in the build system please let my maintainers know in
Slack:#secinf.

I do my best to automatically add new files to the build, but some moz.build files
are complicated and you may need to fix them manually.

Flags: needinfo?(rjesup)
Attachment #9692631 - Attachment is obsolete: true
Attachment #9692631 - Attachment is obsolete: false
Assignee: nobody → ryanvm
Attachment #9692631 - Attachment description: Bug 2098837 - Update brotli to 717514a67b3f8abf53365d4471a102a60fff8ef5 → Bug 2098837 - Update brotli to 717514a67b3f8abf53365d4471a102a60fff8ef5. r?#necko-reviewers,jesup
Status: NEW → ASSIGNED
Pushed by rvandermeulen@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8f4b9076fe39 https://hg.mozilla.org/integration/autoland/rev/f5b5155c5277 Update brotli to 717514a67b3f8abf53365d4471a102a60fff8ef5. r=necko-reviewers,valentin
Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: