diff options
| author | Mason Reed <mason@vector35.com> | 2025-02-18 13:48:03 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-02-18 13:48:03 -0500 |
| commit | d137070833f6d42291c390aaa05d78d400d47c21 (patch) | |
| tree | 0600eaa4b05e30484479d6f05ecd2d4eca3632b6 /rust/src | |
| parent | bda248a6e0b6eec64094bffc93ff50b4d09ef638 (diff) | |
Fix Rust TagReference incorrectly holding a Tag reference
This caused a crash when a user called function.tags() on a function with tags
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/tags.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
