eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fuzzing.yml 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. name: fuzzing
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: "0 4 * * 1"
  6. jobs:
  7. fuzzing:
  8. runs-on: ubuntu-latest
  9. name: Fuzz synth_espeak on ${{ matrix.arch }} for ${{ matrix.lang }}
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. arch: [x86-64, x86-32]
  14. lang: [af, am, an, ar, as, az, ba, be, bg, bn, bpy, bs, ca, chr, cmn, cs, cv, cy, da, de, el, en, eo, es, et, eu, fa, fi, fr, ga, gd, gn, grc, gu, hak, haw, he, hi, hr, ht, hu, hy, hyw, ia, id, io, is, it, ja, jbo, ka, kk, kl, kn, ko, kok, ku, ky, la, lb, lfn, lt, ltg, lv, mi, mk, ml, mr, ms, mt, mto, my, nb, nci, ne, nl, nog, om, or, pa, pap, piqd, pl, pt, pt-BR, py, qdb, qu, quc, qya, ro, ru, ru-LV, sd, shn, si, sjn, sk, sl, smj, sq, sr, sv, sw, ta, te, th, tk, tn, tr, tt, ug, uk, ur, uz, vi, yue]
  15. include:
  16. - arch: x86-32
  17. archdeps: "gcc-multilib g++-multilib libpcaudio-dev:i386 libsonic-dev:i386 libc6-dbg:i386"
  18. archconfigflags: "-m32"
  19. - arch: x86-64
  20. archdeps: ""
  21. archconfigflags: ''
  22. steps:
  23. - uses: actions/checkout@v2
  24. - name: enable 32bit architecture
  25. run: sudo dpkg --add-architecture i386
  26. if: matrix.arch == 'x86-32'
  27. - name: dependencies
  28. run: sudo apt-get update && sudo apt-get install libpcaudio-dev libsonic-dev ronn kramdown clang llvm ${{ matrix.archdeps }}
  29. - name: autoconf
  30. run: ./autogen.sh ; chmod -x INSTALL m4/*.m4
  31. - name: configure
  32. run: CC=clang CXX=clang++
  33. CFLAGS="${{ matrix.archconfigflags }} -fsanitize=address,undefined -fstack-protector-strong -g -Og -fno-omit-frame-pointer"
  34. CXXFLAGS="${{ matrix.archconfigflags }} -fsanitize=address,undefined -fstack-protector-strong -g -Og -fno-omit-frame-pointer"
  35. LDFLAGS="-fsanitize=address,undefined -lubsan"
  36. ./configure --with-libfuzzer
  37. - name: Store the fuzzer config
  38. if: ${{ failure() }}
  39. uses: actions/upload-artifact@v2
  40. with:
  41. name: config-${{ matrix.arch }}-${{ matrix.lang }}.log
  42. path: config.log
  43. - name: make
  44. run: make -j
  45. - name: Fuzz function synth_espeak()
  46. run: mkdir tests/fuzzing/CORPUS_DIR ; FUZZ_VOICE=${{ matrix.lang }} tests/fuzzing/synth_fuzzer.test -seed=1 -runs=10000 -max_len=4096 tests/fuzzing/CORPUS_DIR
  47. - name: Store the crash POC
  48. if: ${{ failure() }}
  49. uses: actions/upload-artifact@v2
  50. with:
  51. name: crash-${{ matrix.arch }}-${{ matrix.lang }}.1
  52. path: crash-*
  53. - name: Fuzz function synth_espeak() with language-specific input
  54. run: cp dictsource/${{ matrix.lang }}_* tests/fuzzing/CORPUS_DIR/ || true ; FUZZ_VOICE=${{ matrix.lang }} tests/fuzzing/synth_fuzzer.test -seed=1 -runs=10000 -max_len=4096 tests/fuzzing/CORPUS_DIR
  55. - name: Store the crash POC
  56. if: ${{ failure() }}
  57. uses: actions/upload-artifact@v2
  58. with:
  59. name: crash-${{ matrix.arch }}-${{ matrix.lang }}.2
  60. path: crash-*