Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
429 changed files
with
23,409 additions
and
16,880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# A clang-format style that approximates Python's PEP 7 | ||
# Useful for IDE integration | ||
BasedOnStyle: Google | ||
AlwaysBreakAfterReturnType: All | ||
AllowShortIfStatementsOnASingleLine: false | ||
AlignAfterOpenBracket: AlwaysBreak | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
BreakBeforeBraces: Attach | ||
ColumnLimit: 88 | ||
DerivePointerAlignment: false | ||
IndentWidth: 4 | ||
Language: Cpp | ||
PointerAlignment: Right | ||
ReflowComments: true | ||
SortIncludes: false | ||
SpaceBeforeParens: ControlStatements | ||
SpacesInParentheses: false | ||
TabWidth: 4 | ||
UseTab: Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: CIFuzz | ||
on: | ||
push: | ||
paths: | ||
- "**.c" | ||
- "**.h" | ||
pull_request: | ||
paths: | ||
- "**.c" | ||
- "**.h" | ||
|
||
jobs: | ||
Fuzzing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Build Fuzzers | ||
id: build | ||
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master | ||
with: | ||
oss-fuzz-project-name: 'pillow' | ||
language: python | ||
dry-run: false | ||
- name: Run Fuzzers | ||
id: run | ||
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | ||
with: | ||
oss-fuzz-project-name: 'pillow' | ||
fuzz-seconds: 600 | ||
language: python | ||
dry-run: false | ||
- name: Upload New Crash | ||
uses: actions/upload-artifact@v2 | ||
if: failure() && steps.build.outcome == 'success' | ||
with: | ||
name: artifacts | ||
path: ./out/artifacts | ||
- name: Upload Legacy Crash | ||
uses: actions/upload-artifact@v2 | ||
if: steps.run.outcome == 'success' | ||
with: | ||
name: crash | ||
path: ./out/crash* | ||
- name: Fail on legacy crash | ||
if: success() | ||
run: | | ||
[ ! -e out/crash-* ] | ||
echo No legacy crash detected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Test Valgrind | ||
|
||
# like the docker tests, but running valgrind only on *.c/*.h changes. | ||
|
||
on: | ||
push: | ||
paths: | ||
- "**.c" | ||
- "**.h" | ||
pull_request: | ||
paths: | ||
- "**.c" | ||
- "**.h" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
docker: [ | ||
ubuntu-20.04-focal-amd64-valgrind, | ||
] | ||
dockerTag: [master] | ||
|
||
name: ${{ matrix.docker }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build system information | ||
run: python3 .github/workflows/system-info.py | ||
|
||
- name: Docker pull | ||
run: | | ||
docker pull pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }} | ||
- name: Build and Run Valgrind | ||
run: | | ||
# The Pillow user in the docker container is UID 1000 | ||
sudo chown -R 1000 $GITHUB_WORKSPACE | ||
docker run --name pillow_container -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }} | ||
sudo chown -R runner $GITHUB_WORKSPACE | ||
success: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
name: Valgrind Test Successful | ||
steps: | ||
- name: Success | ||
run: echo Valgrind Test Successful |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.