From b88c536f4fec9ca806cce92cc9ca46a498f3ef93 Mon Sep 17 00:00:00 2001 From: clover caruso Date: Sat, 10 Oct 2026 22:03:31 -0700 Subject: [PATCH] fix: dereference Linux symbol records before slice coercion Iterator::filter borrows the array reference produced by as_chunks().iter(); remove that outer reference at the existing byte-slice boundary. Assisted-by: gpt-6.1-sol --- crates/snowbound/src/linux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/snowbound/src/linux.rs b/crates/snowbound/src/linux.rs index b1eae47372b8a7dc5b8183f0e2e3976dd47c7dbb..e6d77b7938341ba157d4943dede2be255db11f94 100644 --- a/crates/snowbound/src/linux.rs +++ b/crates/snowbound/src/linux.rs @@ -947,7 +947,7 @@ pub fn symbolize(offsets: impl Iterator) -> Result<(), Box() .0 .iter() - .filter(|symbol| symbol[4] & 15 == 2 && field(symbol, 16, 8) > 0) + .filter(|symbol| symbol[4] & 15 == 2 && field(*symbol, 16, 8) > 0) .map(|symbol| { let name = &strings[field(symbol, 0, 4)..]; let start = field(symbol, 8, 8); -- 2.54.0