Skip to content

[Rust] add the process step for the creation of a custom binary view#8061

Open
rbran wants to merge 1 commit intoVector35:devfrom
rbran:just-one-more-state-bro
Open

[Rust] add the process step for the creation of a custom binary view#8061
rbran wants to merge 1 commit intoVector35:devfrom
rbran:just-one-more-state-bro

Conversation

@rbran
Copy link
Copy Markdown
Contributor

@rbran rbran commented Apr 5, 2026

This allows custom implementations of CustomBinaryView to call self.* function related to BinaryView.

Currently calling something like add_segment inside the init function will cause a panic because the context.state had being initialized with CustomViewContextState::Initialized yet, eg minidump does it:

self.add_segment(
Segment::builder(segment.mapped_addr_range.clone())
.parent_backing(segment.rva_range.clone())
.is_auto(true)
.flags(segment_flags),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant