diff options
| author | Mason Reed <mason@vector35.com> | 2025-07-13 17:34:02 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-07-15 12:34:43 -0400 |
| commit | bd1b6b8a1a75df296da5c7afa8107ba301c9cd8e (patch) | |
| tree | b0155db15147c9d91da10519ee72eb87560ba2d4 /rust/src/architecture.rs | |
| parent | fa3c81fd9b4287792c3e3d534a7d237d6005cb5f (diff) | |
[Rust] Add `BinaryView::search` and friends
Diffstat (limited to 'rust/src/architecture.rs')
| -rw-r--r-- | rust/src/architecture.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index d226230c..6b33b6bb 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -1828,10 +1828,7 @@ impl Architecture for CoreArchitecture { fn assemble(&self, code: &str, addr: u64) -> Result<Vec<u8>, String> { let code = CString::new(code).map_err(|_| "Invalid encoding in code string".to_string())?; - let result = match DataBuffer::new(&[]) { - Ok(result) => result, - Err(_) => return Err("Result buffer allocation failed".to_string()), - }; + let result = DataBuffer::new(&[]); // TODO: This is actually a list of errors. let mut error_raw: *mut c_char = std::ptr::null_mut(); let res = unsafe { |
