Skip to content

Custom disassembler warning message incorrectly displays on x86 disassembler #281

Open
@edmcman

Description

@edmcman
root@fd44a08dfb74:/# fn2hash -j - --option pharos.disassembler=amd64 map:0x1000::/etc/passwd
OPTI[INFO ]: Analyzing executable: 4AF514F469681E8C80D215898ED47E17
OPTI[INFO ]: Calculating function hashes for file: 4AF514F469681E8C80D215898ED47E17 ; MD5: 4AF514F469681E8C80D215898ED47E17
OPTI[WARN ]: Using rose partitioner instead of pharos partitioner due to non-i386 disassembler
OPTI[INFO ]: Pharos function partitioning took 0.000113175 seconds.
OPTI[INFO ]: Partitioned 0 bytes, 0 instructions, 0 basic blocks, 0 data blocks and 0 functions.
HASH[ERROR]: No starting points for recursive disassembly.
OPTI[INFO ]: fn2hash complete
{"analysis": [],"analyzed_file": "map:0x1000::/etc/passwd","invocation": ["fn2hash","-j","-","--option","pharos.disassembler=amd64","map:0x1000::/etc/passwd"],"tool": "fn2hash"}

The code at

if (arch && std::dynamic_pointer_cast<Rose::BinaryAnalysis::Architecture::X86>(*arch)) {
looks right to me at first glance.

http://rosecompiler.org/ROSE_HTML_Reference/classRose_1_1BinaryAnalysis_1_1Architecture_1_1X86.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions