1535 Commits

Author SHA1 Message Date
dependabot[bot]
0f75f74b24 Bump github/codeql-action from 4.31.7 to 4.35.1 (#1440)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.7 to 4.35.1.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](cf1bb45a27...c10b8064de)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-04-13 09:38:31 +02:00
Eugene Kliuchnikov
8744a23812 Merge branch 'master' into dependabot/github_actions/github/codeql-action-4.35.1 2026-04-13 09:38:18 +02:00
dependabot[bot]
4d7d0bd012 Bump github/codeql-action from 4.31.7 to 4.35.1
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.7 to 4.35.1.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](cf1bb45a27...c10b8064de)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-13 07:38:09 +00:00
dependabot[bot]
69ac87248e Bump actions/download-artifact from 6.0.0 to 8.0.1 (#1441)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 6.0.0 to 8.0.1.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](018cc2cf5b...3e5f45b2cf)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: 8.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-04-13 09:37:45 +02:00
dependabot[bot]
918ef4751b Bump actions/setup-python from 6.1.0 to 6.2.0 (#1442)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](83679a892e...a309ff8b42)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 6.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-04-13 09:37:07 +02:00
dependabot[bot]
183bb3a810 Bump step-security/harden-runner from 2.16.0 to 2.16.1 (#1445)
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.16.0 to 2.16.1.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](fa2e9d605c...fe10465874)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-version: 2.16.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-04-13 09:35:05 +02:00
dependabot[bot]
0cd3d87874 Bump mymindstorm/setup-emsdk from 14 to 15 (#1446)
Bumps [mymindstorm/setup-emsdk](https://github.com/mymindstorm/setup-emsdk) from 14 to 15.
- [Release notes](https://github.com/mymindstorm/setup-emsdk/releases)
- [Commits](6ab9eb1bda...667eb33f24)

---
updated-dependencies:
- dependency-name: mymindstorm/setup-emsdk
  dependency-version: '15'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-04-13 09:33:45 +02:00
Your Name
2868c3ac9b Return failure on comment mismatch in CLI decompression
The final comment verification check in DecompressFile() detects when
comment_state is not COMMENT_OK but unconditionally returns BROTLI_TRUE.
This causes the -C (comment verification) flag to accept streams with
missing or mismatched comments, keeping the output file and exiting 0.

Add the missing return BROTLI_FALSE inside the mismatch branch so that
comment verification failures are properly propagated to the caller.
2026-04-11 16:37:53 +05:30
Evgenii Kliuchnikov
bad6cb59b5 Make all BrotliOutputStream methods exclusive/blocking.
If access is naturally exclusive, then it is nearly zero-cost (1 atomic CAS)

PiperOrigin-RevId: 896977751
2026-04-09 02:28:14 -07:00
Evgenii Kliuchnikov
4792c8e4c4 Check that total compound dictionary size does not overflow.
Thanks to @0xazanul who reported the problem in #1438

PiperOrigin-RevId: 896638456
2026-04-08 12:24:31 -07:00
Evgenii Kliuchnikov
88b27d494d Fix partial javadocs
PiperOrigin-RevId: 896503460
2026-04-08 08:00:31 -07:00
Robin Watts
7c2def18f6 Fix compilation in ISO C enviroments; declare vars before code. 2026-04-03 19:04:09 +01:00
Copybara-Service
5583858f76 Merge pull request #1413 from leofernandesmo:fix-java-brotliinputstream-null-buffer
PiperOrigin-RevId: 889691589
2026-03-26 01:40:30 -07:00
Copybara-Service
a0f8a2c9ba Merge pull request #1382 from vanschelven:fix-python-docstring
PiperOrigin-RevId: 889690037
2026-03-26 01:36:35 -07:00
Copybara-Service
495f30f8fd Merge pull request #1414 from leofernandesmo:fix-java-brotliinputstream-illegalstateexception
PiperOrigin-RevId: 889681811
2026-03-26 01:12:38 -07:00
Eugene Kliuchnikov
77b1773bc4 Merge branch 'master' into fix-python-docstring 2026-03-26 08:31:18 +01:00
Eugene Kliuchnikov
538c014676 Merge branch 'master' into fix-java-brotliinputstream-null-buffer 2026-03-26 08:19:58 +01:00
Eugene Kliuchnikov
e1d9ad3cca Merge branch 'master' into fix-java-brotliinputstream-illegalstateexception 2026-03-26 08:13:21 +01:00
dependabot[bot]
965c18ebe7 Bump actions/setup-node from 6.0.0 to 6.3.0 (#1432)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.0.0 to 6.3.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](2028fbc5c2...53b83947a5)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-03-24 10:53:34 +01:00
dependabot[bot]
3aa085d8b3 Bump actions/upload-artifact from 5.0.0 to 7.0.0 (#1433)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5.0.0 to 7.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](330a01c490...bbbca2ddaa)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-03-24 10:49:28 +01:00
dependabot[bot]
b7b12b1286 Bump actions/cache from 4.3.0 to 5.0.4 (#1434)
Bumps [actions/cache](https://github.com/actions/cache) from 4.3.0 to 5.0.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](0057852bfa...668228422a)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: 5.0.4
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-03-24 10:44:44 +01:00
dependabot[bot]
e50d7906fc Bump actions/checkout from 6.0.0 to 6.0.2 (#1435)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.0 to 6.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1af3b93b68...de0fac2e45)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-03-24 10:39:18 +01:00
dependabot[bot]
762c2af7fb Bump step-security/harden-runner from 2.13.2 to 2.16.0 (#1436)
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.13.2 to 2.16.0.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](95d9a5deda...fa2e9d605c)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-version: 2.16.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-24 10:34:23 +01:00
dependabot[bot]
a413517b94 Bump github/codeql-action from 4.31.4 to 4.31.7 (#1402)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.4 to 4.31.7.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](e12f017898...cf1bb45a27)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.31.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-03-20 22:46:38 +01:00
Copybara-Service
91647431cf Merge pull request #1362 from google:dependabot/github_actions/actions/upload-artifact-5.0.0
PiperOrigin-RevId: 886860559
2026-03-20 10:26:48 -07:00
Evgenii Kliuchnikov
1bb6609637 internal change
PiperOrigin-RevId: 886246512
2026-03-20 10:26:28 -07:00
dependabot[bot]
0ac21aff4c Bump actions/upload-artifact from 4.6.2 to 5.0.0 (#1362)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.2 to 5.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](ea165f8d65...330a01c490)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-03-20 18:19:12 +01:00
Eugene Kliuchnikov
d856e1d3d7 Merge branch 'master' into dependabot/github_actions/actions/upload-artifact-5.0.0 2026-03-20 18:15:11 +01:00
dependabot[bot]
02e772e33a Bump actions/setup-python from 6.0.0 to 6.1.0 (#1399)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](e797f83bcb...83679a892e)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene Kliuchnikov <eustas.ru@gmail.com>
2026-03-20 18:14:26 +01:00
Copybara-Service
1818606d6a Merge pull request #1429 from eustas:baz1
PiperOrigin-RevId: 886228512
2026-03-19 09:45:24 -07:00
Copybara-Service
f5d448d31f Merge pull request #1430 from eustas:jniw
PiperOrigin-RevId: 886228415
2026-03-19 09:44:20 -07:00
Evgenii Kliuchnikov
39608c13d4 Add JNI wrappers to archive 2026-03-19 11:38:34 +00:00
Evgenii Kliuchnikov
e669b4f618 Fix bazel build for research/ 2026-03-19 09:13:17 +00:00
Copybara-Service
cfa184a997 Merge pull request #1425 from eustas:baz0
PiperOrigin-RevId: 885596587
2026-03-18 08:01:30 -07:00
Eugene Kliuchnikov
bb3ce8e64a Merge branch 'master' into baz0 2026-03-17 11:04:30 +01:00
Evgenii Kliuchnikov
408457d9c5 internal change
PiperOrigin-RevId: 884867731
2026-03-17 01:12:04 -07:00
Evgenii Kliuchnikov
8794fc793e Fix bazel build
That includes un-inlining JNI function calls
2026-03-13 12:31:38 +00:00
Evgenii Kliuchnikov
9e558dd5c2 Lint
PiperOrigin-RevId: 882767063
2026-03-12 14:03:01 -07:00
Evgenii Kliuchnikov
0ed4268a44 Detect and report invalid stream earlier.
PiperOrigin-RevId: 876198329
2026-02-27 05:10:54 -08:00
Copybara-Service
34f020fa9d Merge pull request #1420 from dpogue:patch-1
PiperOrigin-RevId: 875670546
2026-02-26 05:24:10 -08:00
Copybara-Service
00983eeddc Merge pull request #1398 from KilianKegel:master
PiperOrigin-RevId: 875661415
2026-02-26 04:59:35 -08:00
Brotli
1bcd5c0d9e Add a flag to the dictionary generator to skip empty samples.
PiperOrigin-RevId: 875642399
2026-02-26 04:02:08 -08:00
Kilian Kegel
05783a842e Merge branch 'master' into master 2026-02-25 11:07:58 +01:00
Darryl Pogue
2c137d82ea Fix invalid for loop initialization
This fixes an error when building with gcc-4.2 on Mac OS X 10.5, and is consistent
with the rest of the for loop declarations in this file.
2026-02-19 22:17:08 -08:00
Evgenii Kliuchnikov
51be27dbd9 Add py free-threaded support + concurrent access test
PiperOrigin-RevId: 872298536
2026-02-19 02:46:00 -08:00
Brotli
54f74c7f5a Enable shared_dictionary for quality 3 and 4.
PiperOrigin-RevId: 869794857
2026-02-13 10:35:28 -08:00
Leo fernandes
2c214287ff java: wrap decoder IllegalStateException as IOException 2026-01-21 16:30:47 -03:00
Leo fernandes
e7f00f6348 java: add explicit null check in BrotliInputStream.read 2026-01-21 15:00:59 -03:00
Justin Graham
7607185e26 Fix Emscripten detection false positives and unsuppressible status messages
Issue 1: False positive Emscripten detection

The check_c_source_compiles() test incorrectly detected Emscripten when
building with non-Emscripten WASM toolchains (e.g., WASI SDK). In cross-
compilation scenarios, CMake creates a static library instead of an
executable for compile tests. An empty source file (when __EMSCRIPTEN__
is not defined) successfully archives into a static library, causing the
test to pass when it should fail.

Resolution: Use the EMSCRIPTEN CMake variable set by Emscripten's official
toolchain file, which is the recommended detection method. Remove the
unreliable check_c_source_compiles() fallback.

Issue 2: Unsuppressible status messages

The message() calls lacked a type argument, making them always print
regardless of CMake's log level settings.

Resolution: Add STATUS type to message() calls so they can be suppressed
with CMake's --log-level option.
2025-12-10 07:29:07 -08:00
Kilian Kegel
8ff8538ed3 fix 'const' qualifier in c\dec\bit_reader.c 2025-11-30 10:01:03 +01:00