From d137070833f6d42291c390aaa05d78d400d47c21 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 18 Feb 2025 13:48:03 -0500 Subject: Fix Rust TagReference incorrectly holding a Tag reference This caused a crash when a user called function.tags() on a function with tags --- rust/src/tags.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src') diff --git a/rust/src/tags.rs b/rust/src/tags.rs index 3fc50676..3b20bc04 100644 --- a/rust/src/tags.rs +++ b/rust/src/tags.rs @@ -245,7 +245,7 @@ impl From<&BNTagReference> for TagReference { Self { reference_type: value.refType, auto_defined: value.autoDefined, - tag: unsafe { Tag::ref_from_raw(value.tag).to_owned() }, + tag: unsafe { Tag::from_raw(value.tag).to_owned() }, arch: unsafe { CoreArchitecture::from_raw(value.arch) }, func: unsafe { Function::from_raw(value.func).to_owned() }, addr: value.addr, -- cgit v1.3.1