From 11593bd8084219ce360a3b75d8c51c641cb3c0b6 Mon Sep 17 00:00:00 2001 From: naoNao89 <90588855+naoNao89@users.noreply.github.com> Date: Fri, 17 Oct 2025 07:29:53 +0700 Subject: [PATCH] fuzz: enable debug symbols in release builds Adds debug = true to the [profile.release] section in fuzz/Cargo.toml. This enables generation of backtraces with function names and line numbers when fuzzing discovers crashes, instead of just memory addresses. Fixes #5343 --- fuzz/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 142821224..d3c987f22 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -18,6 +18,11 @@ license = "MIT" [package.metadata] cargo-fuzz = true +# Enable debug symbols in release builds for readable backtraces +# when fuzzing discovers crashes. This addresses issue #5343. +[profile.release] +debug = true + [dependencies] libfuzzer-sys = "0.4.7" rand = { version = "0.9.0", features = ["small_rng"] }