You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let existing_functions = bv.functions_at(address);
391
-
if existing_functions.len() > 1{
392
-
warn!("Multiple existing functions at address {address:08x}. One or more functions at this address may have the wrong platform information. Please report this binary.");
warn!("Multiple existing functions at address {address:08x}. One or more functions at this address may have the wrong platform information. Please report this binary.");
/// A wrapper around a `binaryninja::databuffer::DataBuffer`, from which a `[u8]` buffer can be obtained
26
-
/// to pass to `minidump::Minidump::read`.
27
-
///
28
-
/// This code is taken from [`dwarfdump`](https://github.com/Vector35/binaryninja-api/blob/9d8bc846bd213407fb1a7a19af2a96f17501ac3b/rust/examples/dwarfdump/src/lib.rs#L81)
29
-
/// in the Rust API examples.
30
-
#[derive(Clone)]
31
-
pubstructDataBufferWrapper{
32
-
inner:Arc<DataBuffer>,
33
-
}
34
-
35
-
implDataBufferWrapper{
36
-
pubfnnew(buf:DataBuffer) -> Self{
37
-
DataBufferWrapper{
38
-
inner:Arc::new(buf),
39
-
}
40
-
}
41
-
}
42
-
43
-
implDerefforDataBufferWrapper{
44
-
typeTarget = [u8];
45
-
fnderef(&self) -> &Self::Target{
46
-
self.inner.get_data()
47
-
}
48
-
}
49
-
50
23
/// The _Minidump_ binary view type, which the Rust plugin registers with the Binary Ninja core
51
24
/// (via `binaryninja::custombinaryview::register_view_type`) as a possible binary view
52
25
/// that can be applied to opened binaries.
@@ -141,9 +114,8 @@ impl MinidumpBinaryView {
141
114
fninit(&self) -> BinaryViewResult<()>{
142
115
let parent_view = self.parent_view()?;
143
116
let read_buffer = parent_view.read_buffer(0, parent_view.len())?;
144
-
let read_buffer = DataBufferWrapper::new(read_buffer);
0 commit comments