diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index e93b0b020..53c2bbdf7 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -11,8 +11,26 @@ jobs: steps: - uses: actions/checkout@v1 - name: build 7za - run: make 7za - + run: | + make 7za + cd ./bin + 7za a ta.7z ../CPP + 7za x ta.7z + echo "compare file" + diff -r ../CPP ./CPP + echo "delete tmp file" + rm -rf ./ta.7z ./CPP + cd .. + - name: build 7z - run: make 7z - \ No newline at end of file + run: | + make 7z + cd ./bin + 7z a t.7z ../CPP + 7z x t.7z + echo "compare file" + diff -r ../CPP ./CPP + echo "delete tmp file" + rm -rf ./t.7z ./CPP + cd .. + diff --git a/CPP/7zip/Compress/ShrinkDecoder.cpp b/CPP/7zip/Compress/ShrinkDecoder.cpp index ec2ed54f3..f5fbeae46 100644 --- a/CPP/7zip/Compress/ShrinkDecoder.cpp +++ b/CPP/7zip/Compress/ShrinkDecoder.cpp @@ -121,12 +121,12 @@ HRESULT CDecoder::CodeReal(ISequentialInStream *inStream, ISequentialOutStream * { _stack[i++] = _suffixes[cur]; cur = _parents[cur]; - if (cur >= kNumItems || i >= kNumItems) - break; + if (cur >= kNumItems || i >= kNumItems) + break; } - if (cur >= kNumItems || i >= kNumItems) - break; + if (cur >= kNumItems || i >= kNumItems) + break; _stack[i++] = (Byte)cur; lastChar2 = (Byte)cur; diff --git a/README.md b/README.md index f4119a542..09b53db93 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# README +# A new p7zip fork with additional codecs and improvements (forked from https://sourceforge.net/projects/p7zip/). This is the Github Page of [p7-Zip] with support of additional Codecs. The library used therefore is located here: [Multithreading Library](https://github.com/mcmilk/zstdmt)