Skip to content

Commit d137070

Browse files
committed
Fix Rust TagReference incorrectly holding a Tag reference
This caused a crash when a user called function.tags() on a function with tags
1 parent bda248a commit d137070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/tags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ impl From<&BNTagReference> for TagReference {
245245
Self {
246246
reference_type: value.refType,
247247
auto_defined: value.autoDefined,
248-
tag: unsafe { Tag::ref_from_raw(value.tag).to_owned() },
248+
tag: unsafe { Tag::from_raw(value.tag).to_owned() },
249249
arch: unsafe { CoreArchitecture::from_raw(value.arch) },
250250
func: unsafe { Function::from_raw(value.func).to_owned() },
251251
addr: value.addr,

0 commit comments

Comments
 (0)