Skip to content

Histogram doesn't show all of large binaries #6549

Description

@Rot127

Work environment

Questions Answers
OS/arch/bits (mandatory) Debian arm 64, Ubuntu x86 32
File format of the file you reverse (mandatory) PE, ELF etc.
Architecture/bits of the file (mandatory) PPC, x86/32, x86/64 etc.
rizin -v full output, not truncated (mandatory) dev

Expected behavior

The histogram (p== commands) shows by default the whole binary.
So everything should fit on the screen, even if the binary is large.

Actual behavior

The histogram stops at some address:

[0x8d400000]> s 0
[0x00000000]> iSS
     paddr      size      vaddr     vsize  align perm name              
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
0x00000000     0x4d4 0x00000000       0x0    0x0 ---- UNKNOWN
0x00002000     0xf98 0xfb000000    0x1000 0x1000 -rwx LOAD0
0x00003000     0x758 0xfb001000    0x1000 0x1000 -r-x LOAD1
0x00004000    0x2d40 0xfb002000    0x3000 0x1000 -rw- LOAD2
0x00007000    0xb15c 0xfb005000    0xc000 0x1000 -r-x LOAD3
0x00013000   0x3a060 0xfb011000   0x3b000 0x1000 -rw- LOAD4
0x0004e000    0x4ff4 0xfe100000    0x5000 0x1000 -r-x LOAD5
0x00053000    0x62ac 0xfe105000   0xc0000 0x1000 -rw- LOAD6
0x0005a000   0x17498 0xfe1c5000   0x18000 0x1000 -r-x LOAD7
0x00072000    0x95dc 0xfe000000    0xa000 0x1000 -rwx LOAD8
0x0007c000    0x3ea8 0xfe00a000    0x4000 0x1000 -r-x LOAD9
0x00080000    0x88cc 0xfe00e000    0x9000 0x1000 -rwx LOAD10
0x00089000   0x21000 0xbc600000   0x21000 0x1000 -rwx LOAD11
0x000aa000  0x390000 0xbc630000  0x390000 0x1000 -rwx LOAD12
0x0043a000   0x10000 0xbc9c0000   0x10000 0x1000 -rw- LOAD13
0x0044a000    0xd000 0xbc9d0000    0xd000 0x1000 -r-x LOAD14
0x00457000  0x4985b0 0xbc9dd000  0x499000 0x1000 -r-x LOAD15
0x008f0000   0x34000 0xbce80000   0x34000 0x1000 -rw- LOAD16
0x00924000  0x554000 0xbcec0000  0x554000 0x1000 -rw- LOAD17
0x00e78000       0x0 0xbd414000    0x1000 0x1000 -rw- LOAD18
0x00e78000  0x43fd18 0xbd415000  0x440000 0x1000 -rw- LOAD19
0x012b8000   0x41ea0 0xbd880000   0x42000 0x1000 -rw- LOAD20
0x012fa000   0xa1000 0xbd900000   0xa1000 0x1000 -rw- LOAD21
0x0139b000 0x121bb00 0xbd9a1000 0x121c000 0x1000 -rw- LOAD22
0x025b7000  0x93d143 0xbebbd000  0x93e000 0x1000 -r-- LOAD23
0x02ef5000  0x964008 0xbf4fc000  0x965000 0x1000 -rw- LOAD24
0x0385a000       0x0 0xbfe68000 0x36ec000 0x1000 -rw- LOAD25
0x0385a000   0x1b640 0xc3554000   0x1c000 0x1000 -rw- LOAD26
0x03876000 0x2e02040 0xc3580000 0x2e03000 0x1000 -rw- LOAD27
0x06679000 0x1035f80 0xc6390000 0x1036000 0x1000 -rw- LOAD28
0x076af000  0x18f01f 0xc73c6000  0x190000 0x1000 -r-- LOAD29
0x0783f000      0xf8 0xc7556000    0x1000 0x1000 -r-- LOAD30
0x07840000   0x5fc00 0xbc100000   0x60000 0x1000 -rwx LOAD31
0x078a0000   0x20000 0xbc170000   0x20000 0x1000 -r-x LOAD32
0x078c0000     0x408 0xbc190000    0x1000 0x1000 -rw- LOAD33
0x078c1000       0x0 0xfe200000 0x5228000 0x1000 -r-- LOAD34
0x078c1000     0xcd8 0x00000000     0xcd8 0x1000 ---- UNKNOWN_0x78c1000
0x00000000      0x34 0xbc100000      0x34    0x0 -rw- ehdr
[0x00000000]> p==e
 8.0│                                                                              
    │                                                                              
    │                                                                              
 6.2│                                                                              
    │                                                                              
    │                                                                              
 4.3│                                                                              
    │                                                                              
    │                                                                              
 2.5│                                                                              
    │                                                                              
    │                                                                              
    │                                                                              
 0.0│██████████████████████████████████████████████████████████████████████████████
     ^                                      ^                                     ^
     0x0                                    0x3c60d00                     0x78c1b00
[0x00000000]> s 0xbc600000
[0xbc600000]> p==e
 8.0│                                                                              
    │                                                                              
    │                                                                              
 6.2│        █    █    █ █  █ █ █                                                  
    │      █████ ███ █ ████ ███████  █                                             
    │█     ███████████████████████████ ██                                          
 4.3│█     ██████████████████████████████                                        █ 
    │█     ██████████████████████████████                                        █ 
    │█    ███████████████████████████████                                        █ 
 2.5│█    ███████████████████████████████                                        █ 
    │█    ███████████████████████████████                                        █ 
    │█    ███████████████████████████████                                        █ 
    │█    ███████████████████████████████       █                                █ 
 0.0│██████████████████████████████████████████████████████████████████████████████
     ^                                      ^                                     ^
     0xbc600000                             0xbc610700                   0xbc620f00

Steps to reproduce the behavior

As above.

Additional Logs, screenshots, source code, configuration dump, ...

Drag and drop zip archives containing the Additional info here, don't use external services or link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UX/UIUser Interface/User experiencebugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions