Skip to content

Change the fuzzing optimization level to 0 #60

Change the fuzzing optimization level to 0

Change the fuzzing optimization level to 0 #60

Workflow file for this run

name: Fuzz Parser
on:
push:
paths:
- src/scanner.c
- .github/workflows/fuzz.yaml
- fuzzer/
pull_request:
paths:
- src/scanner.c
- .github/workflows/fuzz.yaml
- fuzzer/
workflow_dispatch:
env:
RUST_BACKTRACE: 1
CI: 1
jobs:
test:
name: Parser fuzzing
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@just
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- run: |
npm --version
npx --version
- run: npm install --locked --include=dev
- run: just fuzz
- name: Print failures
if: always()
run: ls fuzzer/failures/* |
xargs -IFNAME sh -c 'echo "\nContents of FNAME:" && base64 -i FNAME'