From 18584e2259382bbb4e56007eacbe81dba25db05a Mon Sep 17 00:00:00 2001 From: Dave Tucker Date: Mon, 5 Sep 2022 17:33:31 +0000 Subject: [PATCH] aya: Fix segfault in define_link_wrapper The From<$wrapper> for $base implemention is refers to itself, eventually causing a segfault. Signed-off-by: Dave Tucker --- aya/src/programs/links.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya/src/programs/links.rs b/aya/src/programs/links.rs index 1f7a68f0..129d5952 100644 --- a/aya/src/programs/links.rs +++ b/aya/src/programs/links.rs @@ -258,7 +258,7 @@ macro_rules! define_link_wrapper { impl From<$wrapper> for $base { fn from(w: $wrapper) -> $base { - w.into() + w.0 } } };