Skip to content

Commit 144fb10

Browse files
committed
fix: check line table bounds
- fix oob read panic - fix int overflow in debug mode - add fuzzer - lintt - fix upload artifacts names
1 parent 20ecc5b commit 144fb10

File tree

20 files changed

+2243
-92
lines changed

20 files changed

+2243
-92
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ jobs:
7777
python3 -c "import shutil; import glob; wheels = glob.glob('dist/*.whl'); [shutil.move(wheel, wheel.replace('py3', 'py2.py3')) for wheel in wheels if 'py2' not in wheel]"
7878
if: runner.os != 'Linux'
7979
- name: Upload wheels
80-
uses: actions/upload-artifact@v3
80+
uses: actions/upload-artifact@v4
8181
with:
82-
name: wheels
82+
name: "wheel-${{matrix.os}}"
8383
path: dist
8484
if: runner.os != 'Linux'
8585

@@ -120,9 +120,9 @@ jobs:
120120
run: |
121121
python3 -c "import shutil; import glob; wheels = glob.glob('dist/*.whl'); [shutil.move(wheel, wheel.replace('py3', 'py2.py3')) for wheel in wheels if 'py2' not in wheel]"
122122
- name: Upload wheels
123-
uses: actions/upload-artifact@v3
123+
uses: actions/upload-artifact@v4
124124
with:
125-
name: wheels
125+
name: "wheel-cross-${{matrix.target}}"
126126
path: dist
127127

128128
build-freebsd:
@@ -136,14 +136,14 @@ jobs:
136136
steps:
137137
- uses: actions/checkout@v3
138138
- name: Cache Vagrant box
139-
uses: actions/cache@v3.0.4
139+
uses: actions/cache@v4
140140
with:
141141
path: .vagrant.d
142142
key: ${{ matrix.box }}-vagrant-boxes-20231115-${{ hashFiles('ci/Vagrantfile') }}
143143
restore-keys: |
144144
${{ matrix.box }}-vagrant-boxes-20231115-
145145
- name: Cache Cargo and build artifacts
146-
uses: actions/cache@v3.0.4
146+
uses: actions/cache@v4
147147
with:
148148
path: build-artifacts.tar
149149
key: ${{ matrix.box }}-cargo-20231115-${{ hashFiles('**/Cargo.lock') }}
@@ -177,7 +177,7 @@ jobs:
177177
tar xf build-artifacts.tar target/release/py-spy
178178
mv target/release/py-spy py-spy-x86_64-unknown-freebsd
179179
- name: Upload Binaries
180-
uses: actions/upload-artifact@v3
180+
uses: actions/upload-artifact@v4
181181
with:
182182
name: py-spy-x86_64-unknown-freebsd
183183
path: py-spy-x86_64-unknown-freebsd
@@ -267,9 +267,7 @@ jobs:
267267

268268
steps:
269269
- uses: actions/checkout@v2
270-
- uses: actions/download-artifact@v3
271-
with:
272-
name: wheels
270+
- uses: actions/download-artifact@v4
273271
- uses: actions/setup-python@v4
274272
with:
275273
python-version: ${{ matrix.python-version }}
@@ -311,9 +309,7 @@ jobs:
311309
if: "startsWith(github.ref, 'refs/tags/')"
312310
needs: [test-wheels]
313311
steps:
314-
- uses: actions/download-artifact@v3
315-
with:
316-
name: wheels
312+
- uses: actions/download-artifact@v4
317313
- name: Create GitHub Release
318314
uses: fnkr/github-action-ghr@v1.3
319315
env:

fuzz/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target
2+
corpus
3+
artifacts
4+
coverage

0 commit comments

Comments
 (0)