Skip to content

Commit

Permalink
tasks.py: Let's try by passing '-Db_sanitize=address' to `meson compi…
Browse files Browse the repository at this point in the history
…le` in fuzzer() task
  • Loading branch information
ibc committed Feb 21, 2024
1 parent d0ea8f1 commit 35ac768
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion worker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,13 @@ def fuzzer(ctx):
"""
Build the mediasoup-worker-fuzzer binary (which uses libFuzzer)
"""

# NOTE: We need to pass '-Db_sanitize=address' to enable fuzzer in all Meson
# subprojects.

with ctx.cd(f'"{WORKER_DIR}"'):
ctx.run(
f'"{MESON}" compile -C "{BUILD_DIR}" -j {NUM_CORES} mediasoup-worker-fuzzer',
f'"{MESON}" compile -C "{BUILD_DIR}" -j {NUM_CORES} -Db_sanitize=address mediasoup-worker-fuzzer',
echo=True,
pty=PTY_SUPPORTED,
shell=SHELL
Expand Down

0 comments on commit 35ac768

Please sign in to comment.