From ebc764f65eca89d0dbb0ffb96c143fd78ad27b62 Mon Sep 17 00:00:00 2001 From: Joe Rozner Date: Sun, 10 May 2026 00:13:05 -0700 Subject: [PATCH] Fix load_with_options_and_progress A similar fix was applied for load_view_with_options in ff58143ff7794d7251f9182294dd25bd4cbe15eb but was not applied here. This allows None to be correctly passed --- rust/src/lib.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 5f23a9f6aa..a31131e040 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -95,8 +95,6 @@ use crate::progress::{NoProgressCallback, ProgressCallback}; use crate::string::raw_to_string; use binary_view::BinaryView; use binaryninjacore_sys::*; -use metadata::Metadata; -use metadata::MetadataType; use rc::Ref; use std::cmp; use std::collections::HashMap; @@ -200,11 +198,7 @@ where .to_bytes_with_nul() .to_vec() } else { - Metadata::new_of_type(MetadataType::KeyValueDataType) - .get_json_string() - .ok()? - .as_ref() - .to_vec() + "{}".to_cstr().to_bytes_with_nul().to_vec() }; let handle = unsafe { BNLoadFilename(