mirror of
https://github.com/google/brotli.git
synced 2026-02-07 13:51:45 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
028fb5a236 | ||
|
|
390de5b472 | ||
|
|
3499acbb7a |
18
.github/workflows/build_test.yml
vendored
18
.github/workflows/build_test.yml
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
20
csharp/brotlidec.Tests.csproj
Normal file
20
csharp/brotlidec.Tests.csproj
Normal 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
13
csharp/brotlidec.csproj
Normal 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>
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
2
js/decode.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user