- Introduce the following new methods: * `rz_analysis_similarity_basic_block()` * `rz_analysis_similarity_function()` * `rz_analysis_similarity_basic_block_2()` * `rz_analysis_similarity_function_2()` * `rz_analysis_match_basic_blocks()` * `rz_analysis_match_functions()` * `rz_analysis_match_basic_blocks_2()` * `rz_analysis_match_functions_2()` - Remove `RzAnalysisDiff` and its usages - Remove `librz/analysis/diff.c` entirely to and adds `librz/analysis/similarity.c` - Remove a lot of unused structures and simplified the code by a lot - Fix typo in levenshtein - Remove `librz/core/gdiff.c` and `gdiff` functions since they were unused or only used in rz-diff - Remove `difftype` (or "color") from `RzANode` which lead to dead code - Decrease serialized data in projects. - Add `RzAnalysisVarKind` and `RzAnalysisVarType` and replaces all the hardcoded values - Remove command `agd` - Remove all `rz_core_gdiff` usages from `rz_core.h` - Refactor `rz_analysis_var_list` and `rz_analysis_var_count` due unused argument (`RzAnalysis` was not used) - Add new method `rz_analysis_var_count_total` to simplify some usages - Remove `rz_core_graph_diff` - Add `typedef RzAnalysisFcnType` on `enum``used for function types - Remove unused `RZ_ANALYSIS_FCN_VARKIND_LOCAL` - Remove from `RzAnalysisFunction` the following variables: * `fingerprint` * `fingerprint_size` * `diff` * `diff_ops` * `diff_thbb` * `diff_thfcn` - Remove from `RzAnalysisBlock` the following variables: * `fingerprint` * `diff` - Remove `RZ_ANALYSIS_THRESHOLDBB` and `RZ_ANALYSIS_THRESHOLDFCN` - Remove the following callbacks from `RzAnalysisPlugin` * `RzAnalysisDiffBBCallback` * `RzAnalysisDiffFcnCallback` * `RzAnalysisDiffEvalCallback` - Fix fancy table columns/rows when a color string is in a cell - Bumped project version to 9
60 lines
1.8 KiB
Text
60 lines
1.8 KiB
Text
NAME=om output
|
|
FILE=--
|
|
CMDS=<<EOF
|
|
on malloc://256
|
|
on malloc://256 0x300
|
|
omni 1 aaaaaa
|
|
omni 2 bbbbbb
|
|
oml
|
|
oml. @ 0x300
|
|
EOF
|
|
EXPECT=<<EOF
|
|
1 fd: 3 +0x00000000 0x00000000 * 0x000000ff rw- aaaaaa
|
|
2 fd: 4 +0x00000000 0x00000300 - 0x000003ff rw- bbbbbb
|
|
2 fd: 4 +0x00000000 0x00000300 - 0x000003ff rw- bbbbbb
|
|
EOF
|
|
RUN
|
|
|
|
NAME=omlt
|
|
FILE=bins/elf/ls
|
|
CMDS=<<EOF
|
|
omlt
|
|
?e
|
|
omlt:quiet
|
|
?e
|
|
omlt:size
|
|
?e
|
|
omlt:name/str/fmap.LOAD3:size:quiet
|
|
EOF
|
|
EXPECT=<<EOF
|
|
.---------------------------------------------------------------------------------------.
|
|
| id | fd | pa | pa_end | size | va | va_end | perm | name |
|
|
)---------------------------------------------------------------------------------------(
|
|
| 1 | 4 | 0x0 | 0x9b8 | 0x9b8 | 0x23560 | 0x23f18 | r-- | vmap.reloc-targets |
|
|
| 2 | 3 | 0x0 | 0x3480 | 0x3480 | 0x0 | 0x3480 | r-- | fmap.LOAD0 |
|
|
| 3 | 3 | 0x4000 | 0x16791 | 0x12791 | 0x4000 | 0x16791 | r-x | fmap.LOAD1 |
|
|
| 4 | 3 | 0x17000 | 0x1f7c0 | 0x87c0 | 0x17000 | 0x1f7c0 | r-- | fmap.LOAD2 |
|
|
| 5 | 5 | 0x0 | 0x12f0 | 0x12f0 | 0x22268 | 0x23558 | rw- | mmap.LOAD3 |
|
|
| 6 | 6 | 0x20050 | 0x21268 | 0x1218 | 0x21050 | 0x22268 | r-- | vmap.LOAD3 |
|
|
`---------------------------------------------------------------------------------------'
|
|
|
|
1 4 0x0 0x9b8 0x9b8 0x23560 0x23f18 r-- vmap.reloc-targets
|
|
2 3 0x0 0x3480 0x3480 0x0 0x3480 r-- fmap.LOAD0
|
|
3 3 0x4000 0x16791 0x12791 0x4000 0x16791 r-x fmap.LOAD1
|
|
4 3 0x17000 0x1f7c0 0x87c0 0x17000 0x1f7c0 r-- fmap.LOAD2
|
|
5 5 0x0 0x12f0 0x12f0 0x22268 0x23558 rw- mmap.LOAD3
|
|
6 6 0x20050 0x21268 0x1218 0x21050 0x22268 r-- vmap.LOAD3
|
|
|
|
.---------.
|
|
| size |
|
|
)---------(
|
|
| 0x9b8 |
|
|
| 0x3480 |
|
|
| 0x12791 |
|
|
| 0x87c0 |
|
|
| 0x12f0 |
|
|
| 0x1218 |
|
|
`---------'
|
|
|
|
EOF
|
|
RUN
|