Compare commits

...

3 Commits

Author SHA1 Message Date
Evgenii Kliuchnikov
028fb5a236 release v1.2.0
PiperOrigin-RevId: 824484966
2025-10-27 06:07:48 -07:00
Evgenii Kliuchnikov
390de5b472 build and test csharp decoder
PiperOrigin-RevId: 822490991
2025-10-22 02:21:13 -07:00
Evgenii Kliuchnikov
3499acbb7a regenerate go/kt/js/ts
PiperOrigin-RevId: 822489795
2025-10-22 02:16:51 -07:00
9 changed files with 61 additions and 10 deletions

View File

@@ -355,3 +355,21 @@ jobs:
python2.7 -VV
python2.7 -c "import sys; sys.exit('Invalid python version') if '.'.join(map(str,sys.version_info[0:2])) != '2.7' else True"
python2.7 setup.py test
build_test_dotnet:
name: Build and test with .NET
runs-on: ubuntu-latest
steps:
- name: Checkout the source
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: false
fetch-depth: 1
- name: Build / Test
run: |
cd csharp
dotnet build brotlidec.csproj --configuration Release
dotnet test brotlidec.Tests.csproj

View File

@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
## [1.2.0] - 2025-10-xx
## [1.2.0] - 2025-10-27
### SECURITY
- python: added `Decompressor::can_accept_more_data` method and optional

View File

@@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
</PropertyGroup>
<ItemGroup>
<!-- Both regular sources and test sources -->
<Compile Include="org\brotli\dec\*.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<!-- Stick to NUnit3 until tests are regenerated -->
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="5.2.0" />
</ItemGroup>
</Project>

13
csharp/brotlidec.csproj Normal file
View File

@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
</PropertyGroup>
<ItemGroup>
<Compile Include="org\brotli\dec\*.cs" />
<Compile Remove="**\*Test.cs" />
</ItemGroup>
</Project>

View File

@@ -1879,8 +1879,8 @@ func copyRawBytes(s *_State, data []int8, offset int32, length int32) int32 {
}
for len > 0 {
var chunkLen int32 = readInput(s, data, pos, len)
if len < -1 {
return len
if chunkLen < -1 {
return chunkLen
}
if chunkLen <= 0 {
return makeError(s, -16)

View File

@@ -1706,8 +1706,8 @@ internal fun copyRawBytes(s: State, data: ByteArray, offset: Int, length: Int):
}
while (len > 0) {
val chunkLen: Int = readInput(s, data, pos, len);
if (len < -1) {
return len;
if (chunkLen < -1) {
return chunkLen;
}
if (chunkLen <= 0) {
return makeError(s, -16);

View File

@@ -2026,8 +2026,8 @@ let makeBrotliDecode = () => {
}
while (len > 0) {
const /** @type {number} */ chunkLen = readInput(s, data, pos, len);
if (len < -1) {
return len;
if (chunkLen < -1) {
return chunkLen;
}
if (chunkLen <= 0) {
return makeError(s, -16);

2
js/decode.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1697,8 +1697,8 @@ function copyRawBytes(s: State, data: Int8Array, offset: number, length: number)
}
while (len > 0) {
const chunkLen: number = readInput(s, data, pos, len);
if (len < -1) {
return len;
if (chunkLen < -1) {
return chunkLen;
}
if (chunkLen <= 0) {
return makeError(s, -16);