Skip to content

ReadPointer method on BinaryReader #3657

@0cyn

Description

@0cyn

What is the feature you'd like to have?
There are times when writing Architecture-Independent plugins where being able to avoid large amounts of (bv->GetAddressSize() == 4) and instead have the BinaryReader class handle this check internally would be highly beneficial.

This method could output a fixed size of uint64_t and truncate uint32_t or smaller pointers accordingly.

Is your feature request related to a problem?
This is directly applicable to this workflow_objc issue: #5560

It is also relevant in any plugin/implementation designed to perform analysis on both arm64 and armv7 binaries, and reduces the overhead for supporting non-uint64_t address sizes in general.

Metadata

Metadata

Assignees

Labels

Effort: TrivialIssue should take < 1 dayImpact: LowIssue is a papercut or has a good, supported workaround

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions