Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
#include <rz_io.h>
#include <rz_bin.h>
#include <rz_diff.h>
#include <rz_util.h>
#include <rz_main.h>
Go to the source code of this file.
Classes | |
struct | diff_screen_t |
struct | diff_context_t |
struct | diff_io_t |
struct | diff_file_t |
struct | diff_function_t |
struct | diff_colors_t |
struct | diff_hex_view_t |
Typedefs | |
typedef struct diff_screen_t | DiffScreen |
typedef struct diff_context_t | DiffContext |
typedef struct diff_io_t | DiffIO |
typedef struct diff_file_t | DiffFile |
typedef struct diff_function_t | DiffFunction |
typedef struct diff_colors_t | DiffColors |
typedef struct diff_hex_view_t | DiffHexView |
typedef enum diff_hex_len_t | DiffHexLen |
Enumerations | |
enum | DiffMode { DIFF_MODE_STANDARD = 0 , DIFF_MODE_JSON , DIFF_MODE_QUIET } |
enum | DiffDistance { DIFF_DISTANCE_UNKNOWN = 0 , DIFF_DISTANCE_MYERS , DIFF_DISTANCE_LEVENSHTEIN } |
enum | DiffType { DIFF_TYPE_UNKNOWN = 0 , DIFF_TYPE_BYTES , DIFF_TYPE_CLASSES , DIFF_TYPE_COMMAND , DIFF_TYPE_ENTRIES , DIFF_TYPE_FIELDS , DIFF_TYPE_FUNCTIONS , DIFF_TYPE_IMPORTS , DIFF_TYPE_LIBRARIES , DIFF_TYPE_LINES , DIFF_TYPE_SECTIONS , DIFF_TYPE_STRINGS , DIFF_TYPE_SYMBOLS , DIFF_TYPE_PLOTDIFF } |
enum | DiffOption { DIFF_OPT_UNKNOWN = 0 , DIFF_OPT_ERROR , DIFF_OPT_HELP , DIFF_OPT_USAGE , DIFF_OPT_VERSION , DIFF_OPT_DISTANCE , DIFF_OPT_UNIFIED , DIFF_OPT_GRAPH , DIFF_OPT_HEX_VISUAL } |
enum | diff_hex_len_t { DIFF_HEX_8 = 58 , DIFF_HEX_16 = 90 , DIFF_HEX_32 = 154 } |
#define IF_STRCMP_S | ( | ret, | |
x, | |||
y | |||
) |
#define P | ( | x | ) | (IS_PRINTABLE(x) ? x : '.') |
#define rz_diff_ctx_add_evar | ( | x, | |
o | |||
) |
#define rz_diff_ctx_set_dist | ( | x, | |
t | |||
) | rz_diff_ctx_set_def(x, distance, DIFF_DISTANCE_UNKNOWN, t) |
#define rz_diff_ctx_set_mode | ( | x, | |
m | |||
) | rz_diff_ctx_set_def(x, mode, DIFF_MODE_STANDARD, m) |
#define rz_diff_ctx_set_opt | ( | x, | |
o | |||
) | rz_diff_ctx_set_def(x, option, DIFF_OPT_UNKNOWN, o) |
#define rz_diff_ctx_set_type | ( | x, | |
t | |||
) | rz_diff_ctx_set_def(x, type, DIFF_TYPE_UNKNOWN, t) |
#define rz_diff_error | ( | f, | |
... | |||
) | RZ_LOG_ERROR("rz-diff: error, " f, ##__VA_ARGS__) |
typedef struct diff_colors_t DiffColors |
typedef struct diff_context_t DiffContext |
typedef struct diff_file_t DiffFile |
typedef struct diff_function_t DiffFunction |
typedef enum diff_hex_len_t DiffHexLen |
typedef struct diff_hex_view_t DiffHexView |
typedef struct diff_screen_t DiffScreen |
enum diff_hex_len_t |
enum DiffDistance |
enum DiffMode |
enum DiffOption |
enum DiffType |
Definition at line 35 of file rz-diff.c.
|
static |
Definition at line 901 of file rz-diff.c.
References a, b, and IF_STRCMP_S.
Referenced by rz_diff_classes_new().
|
static |
Definition at line 884 of file rz-diff.c.
References a, b, and IF_STRCMP_S.
Referenced by rz_diff_classes_new().
|
static |
Definition at line 895 of file rz-diff.c.
References rz_bin_class_t::name, rz_diff_hash_data(), and rz_bin_class_t::super.
Referenced by rz_diff_classes_new().
|
static |
Definition at line 876 of file rz-diff.c.
References rz_bin_class_t::addr, rz_bin_class_t::name, rz_diff_hash_data(), and rz_bin_class_t::super.
Referenced by rz_diff_classes_new().
|
static |
Definition at line 908 of file rz-diff.c.
References rz_bin_class_t::name, rz_strbuf_setf(), SAFE_STR, sb, and rz_bin_class_t::super.
Referenced by rz_diff_classes_new().
|
static |
Definition at line 891 of file rz-diff.c.
References rz_bin_class_t::addr, rz_bin_class_t::name, PFMT64x, rz_strbuf_setf(), SAFE_STR, sb, and rz_bin_class_t::super.
Referenced by rz_diff_classes_new().
Definition at line 1398 of file rz-diff.c.
References rz_core_t::flags, input(), NULL, rz_flag_item_t::offset, rz_flag_get(), rz_num_get_input_value(), and rz_num_is_valid_input().
Referenced by rz_diff_graphs_files().
|
inlinestatic |
Definition at line 550 of file rz-diff.c.
References benchmark::cfile, and rz_pvector_at().
Referenced by rz_diff_load_file_with_core().
|
inlinestatic |
Definition at line 1560 of file rz-diff.c.
References diff_hex_view_t::address_a, diff_hex_view_t::address_b, diff_hex_view_t::buffer_a, diff_hex_view_t::buffer_b, DIFF_HEX_16, DIFF_HEX_32, diff_hexdump_partial(), diff_screen_t::height, height, diff_hex_view_t::line, setup::line, pos, printline, diff_hex_view_t::screen, diff_hex_view_t::size_a, diff_hex_view_t::size_b, ut64(), diff_screen_t::width, and width.
Referenced by rz_diff_draw_tui().
|
inlinestatic |
Definition at line 1500 of file rz-diff.c.
References color, diff_hex_view_t::colors, i, diff_hex_view_t::line, setup::line, diff_colors_t::match, match, memset(), diff_colors_t::number, P, PFMT64x, pos, printline, diff_colors_t::reset, and diff_colors_t::unmatch.
Referenced by diff_hexdump_line().
Definition at line 942 of file rz-diff.c.
References rz_bin_addr_t::paddr, rz_diff_hash_data(), rz_bin_addr_t::type, and rz_bin_addr_t::vaddr.
Referenced by rz_diff_entries_new().
Definition at line 965 of file rz-diff.c.
References NULL, rz_bin_addr_t::paddr, PFMT64x, RZ_BIN_ENTRY_TYPE_FINI, RZ_BIN_ENTRY_TYPE_INIT, RZ_BIN_ENTRY_TYPE_MAIN, RZ_BIN_ENTRY_TYPE_PREINIT, RZ_BIN_ENTRY_TYPE_PROGRAM, RZ_BIN_ENTRY_TYPE_TLS, rz_strbuf_setf(), sb, rz_bin_addr_t::type, and rz_bin_addr_t::vaddr.
Referenced by rz_diff_entries_new().
|
static |
Definition at line 1259 of file rz-diff.c.
References benchmark::cfile, command, NULL, output, rz_core_analysis_everything(), rz_core_cmd_str(), rz_core_free(), rz_diff_error, and rz_diff_load_file_with_core().
Referenced by rz_diff_command_new().
|
static |
Definition at line 1218 of file rz-diff.c.
References a, b, and IF_STRCMP_S.
Referenced by rz_diff_fields_new().
|
static |
Definition at line 1192 of file rz-diff.c.
References a, b, IF_STRCMP_S, and st64.
Referenced by rz_diff_fields_new().
|
static |
Definition at line 1212 of file rz-diff.c.
References rz_bin_field_t::name, rz_diff_hash_data(), SAFE_STR, and rz_bin_field_t::type.
Referenced by rz_diff_fields_new().
|
static |
Definition at line 1182 of file rz-diff.c.
References rz_bin_field_t::name, rz_bin_field_t::paddr, rz_diff_hash_data(), SAFE_STR, rz_bin_field_t::type, and rz_bin_field_t::vaddr.
Referenced by rz_diff_fields_new().
|
static |
Definition at line 1225 of file rz-diff.c.
References rz_bin_field_t::name, rz_strbuf_setf(), SAFE_STR, sb, and rz_bin_field_t::type.
Referenced by rz_diff_fields_new().
|
static |
Definition at line 1207 of file rz-diff.c.
References rz_bin_field_t::name, rz_bin_field_t::paddr, PFMT64x, rz_strbuf_setf(), SAFE_STR, sb, rz_bin_field_t::type, and rz_bin_field_t::vaddr.
Referenced by rz_diff_fields_new().
|
static |
Definition at line 1909 of file rz-diff.c.
References diff_hex_view_t::address_a, diff_hex_view_t::address_b, diff_hex_view_t::buffer_a, diff_hex_view_t::buffer_b, diff_io_t::filesize, i, diff_io_t::io, diff_hex_view_t::io_a, diff_hex_view_t::io_b, rz_io_pread_at(), RZ_MAX, RZ_MIN, seek(), diff_hex_view_t::size_a, diff_hex_view_t::size_b, and ut64().
Referenced by rz_diff_hex_visual().
|
static |
Definition at line 1967 of file rz-diff.c.
References diff_hex_view_t::address_a, diff_hex_view_t::address_b, diff_hex_view_t::buffer_a, diff_hex_view_t::buffer_b, diff_io_t::io, diff_hex_view_t::io_a, diff_hex_view_t::io_b, rz_io_pread_at(), RZ_MAX, seek(), and st64.
Referenced by rz_diff_hex_visual().
|
static |
Definition at line 690 of file rz-diff.c.
References a, b, and IF_STRCMP_S.
Referenced by rz_diff_imports_new().
|
static |
Definition at line 678 of file rz-diff.c.
References rz_bin_import_t::bind, rz_bin_import_t::name, rz_diff_hash_data(), SAFE_STR, and rz_bin_import_t::type.
Referenced by rz_diff_imports_new().
|
static |
Definition at line 685 of file rz-diff.c.
References rz_bin_import_t::bind, rz_bin_import_t::name, RZ_BIN_BIND_UNKNOWN_STR, RZ_BIN_TYPE_UNKNOWN_STR, rz_strbuf_setf(), SAFE_STR_DEF, sb, and rz_bin_import_t::type.
Referenced by rz_diff_imports_new().
|
inlinestatic |
Definition at line 1592 of file rz-diff.c.
References DIFF_HEX_16, DIFF_HEX_32, DIFF_HEX_8, diff_hex_view_t::screen, diff_screen_t::width, and width.
Referenced by rz_diff_draw_tui().
Definition at line 1027 of file rz-diff.c.
References a, b, and IF_STRCMP_S.
Referenced by rz_diff_libraries_new().
Definition at line 1023 of file rz-diff.c.
References rz_diff_hash_data().
Referenced by rz_diff_libraries_new().
Definition at line 1033 of file rz-diff.c.
References rz_strbuf_setf(), SAFE_STR, and sb.
Referenced by rz_diff_libraries_new().
|
inlinestatic |
Definition at line 1622 of file rz-diff.c.
References diff_io_t::filesize, diff_hex_view_t::io_a, diff_hex_view_t::io_b, RZ_MAX, UT16_MAX, UT32_MAX, and ut64().
Referenced by rz_diff_draw_tui().
|
static |
Definition at line 1854 of file rz-diff.c.
References diff_hex_view_t::address_a, diff_hex_view_t::address_b, free(), IS_DIGIT, NULL, p, rz_str_trim_head_ro(), st64, value, and visual_prompt().
Referenced by rz_diff_hex_visual().
|
static |
Definition at line 1877 of file rz-diff.c.
References diff_hex_view_t::address_a, diff_hex_view_t::address_b, free(), IS_DIGIT, NULL, p, rz_str_trim_head_ro(), st64, value, and visual_prompt().
Referenced by rz_diff_hex_visual().
|
static |
Definition at line 486 of file rz-diff.c.
References DIFF_DISTANCE_LEVENSHTEIN, DIFF_DISTANCE_MYERS, DIFF_MODE_JSON, DIFF_MODE_QUIET, free(), NULL, pj_end(), pj_free(), pj_kd(), pj_kn(), pj_new(), pj_o(), pj_string(), printf(), rz_diff_error, rz_diff_levenstein_distance(), rz_diff_myers_distance(), and rz_diff_slurp_file().
Referenced by rz_main_rz_diff().
|
static |
Definition at line 912 of file rz-diff.c.
References class_compare(), class_compare_addr(), class_hash(), class_hash_addr(), class_stringify(), class_stringify_addr(), classes(), compare(), diff_file_t::dio, rz_diff_methods_t::elem_at, diff_io_t::filename, NULL, rz_diff_error_ret, rz_diff_file_get, rz_diff_generic_new(), rz_diff_list_elem_at(), rz_list_length(), and rz_list_sort().
Referenced by rz_diff_unified_files().
|
static |
Definition at line 1274 of file rz-diff.c.
References execute_command(), free(), NULL, rz_diff_error_ret, and rz_diff_lines_new().
Referenced by rz_diff_unified_files().
|
static |
Definition at line 1632 of file rz-diff.c.
References diff_hex_view_t::address_a, diff_hex_view_t::address_b, diff_hex_view_t::buffer_a, diff_hex_view_t::buffer_b, diff_hex_view_t::canvas, diff_hex_view_t::colors, diff_hex_view_t::column_descr, DIFF_HEX_16, DIFF_HEX_32, diff_hexdump_line(), diff_io_t::filename, diff_io_t::filesize, h, diff_screen_t::height, height, diff_io_t::io, diff_hex_view_t::io_a, diff_hex_view_t::io_b, diff_colors_t::legenda, len_draw_hexdump(), diff_hex_view_t::line, setup::line, NULL, offset_len(), p, PFMT64x, pos, diff_colors_t::reset, RUNE_ARROW_DOWN, RUNE_ARROW_LEFT, RUNE_ARROW_RIGHT, RUNE_ARROW_UP, rz_cons_canvas_box(), rz_cons_canvas_clear(), rz_cons_canvas_fill(), rz_cons_canvas_gotoxy(), rz_cons_canvas_print(), rz_cons_canvas_write(), rz_cons_clear(), rz_cons_flush(), rz_cons_goto_origin_reset(), rz_cons_singleton(), rz_io_pread_at(), RZ_MAX, RZ_SYS_DIR, rz_sys_usleep(), diff_hex_view_t::screen, seek_min_shift(), shift(), show_help(), diff_hex_view_t::size_a, diff_hex_view_t::size_b, snprintf, rz_cons_t::use_utf8, ut64(), diff_screen_t::width, and width.
Referenced by rz_diff_hex_visual(), and rz_diff_resize_buffer().
Definition at line 993 of file rz-diff.c.
References diff_file_t::dio, rz_diff_methods_t::elem_at, entries(), entry_compare(), entry_hash(), entry_stringify(), diff_io_t::filename, NULL, rz_diff_error_ret, rz_diff_file_get, rz_diff_generic_new(), rz_diff_list_elem_at(), rz_list_length(), and rz_list_sort().
Referenced by rz_diff_unified_files().
|
static |
Definition at line 1229 of file rz-diff.c.
References compare(), diff_file_t::dio, rz_diff_methods_t::elem_at, field_compare(), field_compare_addr(), field_hash(), field_hash_addr(), field_stringify(), field_stringify_addr(), fields, diff_io_t::filename, NULL, rz_diff_error_ret, rz_diff_file_get, rz_diff_generic_new(), rz_diff_list_elem_at(), rz_list_length(), and rz_list_sort().
Referenced by rz_diff_unified_files().
|
static |
Definition at line 662 of file rz-diff.c.
References rz_bin_free(), and rz_diff_io_close().
Referenced by rz_diff_unified_files().
Definition at line 617 of file rz-diff.c.
References diff_file_t::bin, rz_io_t::desc, diff_file_t::dio, rz_io_desc_t::fd, file, diff_file_t::file, diff_io_t::io, memset(), NULL, diff_file_t::plugin, rz_bin_file_cur_plugin(), rz_bin_free(), rz_bin_new(), rz_bin_open_io(), rz_bin_options_init(), rz_diff_error, rz_diff_io_close(), rz_diff_io_open(), rz_io_bind(), and rz_io_desc_size().
Referenced by rz_diff_unified_files().
|
static |
Definition at line 396 of file rz-diff.c.
References Color_INVERT, Color_RESET, colors, diff_colors_t::legenda, diff_colors_t::match, diff_colors_t::number, diff_colors_t::reset, and diff_colors_t::unmatch.
Referenced by rz_diff_hex_visual().
|
static |
Definition at line 1413 of file rz-diff.c.
References a, b, convert_offset_from_input(), DIFF_MODE_JSON, DIFF_TYPE_PLOTDIFF, NULL, rz_config_get_i(), rz_core_analysis_everything(), rz_core_analysis_function_add(), rz_core_diff_show(), rz_core_diff_show_function(), rz_core_free(), rz_core_gdiff_2_files(), rz_core_gdiff_function_2_files(), rz_diff_error, rz_diff_load_file_with_core(), and ut64().
Referenced by rz_main_rz_diff().
|
static |
Definition at line 2027 of file rz-diff.c.
References diff_hex_view_t::address_a, diff_hex_view_t::address_b, diff_hex_view_t::buffer_a, diff_hex_view_t::buffer_b, diff_hex_view_t::canvas, rz_cons_canvas_t::color, Color_RESET_TERMINAL, diff_hex_view_t::colors, diff_hex_view_t::column_descr, rz_cons_t::context, rz_cons_t::event_data, rz_cons_t::event_resize, diff_io_t::filename, diff_io_t::filesize, find_next_diff(), find_prev_diff(), free(), diff_screen_t::height, height, diff_hex_view_t::io_a, diff_hex_view_t::io_b, diff_hex_view_t::line, rz_cons_canvas_t::linemode, malloc(), NULL, prompt_offset_and_seek(), prompt_offset_and_seek_file(), read(), rz_cons_arrow_to_hjkl(), rz_cons_canvas_free(), rz_cons_canvas_new(), rz_cons_clear(), rz_cons_enable_mouse(), rz_cons_flush(), rz_cons_free(), rz_cons_get_size(), rz_cons_goto_origin_reset(), rz_cons_is_breaked(), rz_cons_readchar(), rz_cons_set_interactive(), rz_cons_show_cursor(), rz_cons_singleton(), rz_core_free(), rz_core_new(), rz_core_parse_rizinrc(), rz_diff_draw_tui(), rz_diff_error, rz_diff_get_colors(), rz_diff_io_close(), rz_diff_io_open(), rz_diff_resize_buffer(), RZ_MIN, diff_hex_view_t::screen, seek_min_value(), show_help(), diff_hex_view_t::size_a, diff_hex_view_t::size_b, st64, ut64(), diff_screen_t::width, and width.
Referenced by rz_main_rz_diff().
Definition at line 698 of file rz-diff.c.
References diff_file_t::dio, rz_diff_methods_t::elem_at, diff_io_t::filename, import_compare(), import_hash(), import_stringify(), imports(), NULL, rz_diff_error_ret, rz_diff_file_get, rz_diff_generic_new(), rz_diff_list_elem_at(), rz_list_length(), and rz_list_sort().
Referenced by rz_diff_unified_files().
|
static |
Definition at line 439 of file rz-diff.c.
References rz_io_t::desc, free(), diff_io_t::io, rz_io_desc_close(), and rz_io_free().
Referenced by rz_diff_file_close(), rz_diff_file_open(), rz_diff_hex_visual(), and rz_diff_slurp_file().
Definition at line 404 of file rz-diff.c.
References desc, file, diff_io_t::filename, diff_io_t::filesize, free(), diff_io_t::io, NULL, rz_diff_error, rz_io_desc_close(), rz_io_desc_size(), rz_io_free(), rz_io_new(), rz_io_open_nomap(), RZ_NEW0, and RZ_PERM_R.
Referenced by rz_diff_file_open(), rz_diff_hex_visual(), and rz_diff_slurp_file().
Definition at line 244 of file rz-diff.c.
References IS_NULLSTR, rz_diff_error_ret, and rz_file_is_directory().
Referenced by rz_diff_parse_arguments().
Definition at line 1037 of file rz-diff.c.
References diff_file_t::dio, rz_diff_methods_t::elem_at, diff_io_t::filename, libs(), libs_compare(), libs_hash(), libs_stringify(), NULL, rz_diff_error_ret, rz_diff_file_get, rz_diff_generic_new(), rz_diff_list_elem_at(), rz_list_length(), and rz_list_sort().
Referenced by rz_diff_unified_files().
Definition at line 672 of file rz-diff.c.
References rz_list_get_n().
Referenced by rz_diff_classes_new(), rz_diff_entries_new(), rz_diff_fields_new(), rz_diff_imports_new(), rz_diff_libraries_new(), rz_diff_sections_new(), rz_diff_strings_new(), and rz_diff_symbols_new().
|
static |
Definition at line 554 of file rz-diff.c.
References benchmark::cfile, colors, rz_core_t::config, core_get_file(), rz_bin_object_t::maps, NULL, rz_bin_file_t::o, rz_core_t::print, rz_config_eval(), rz_config_set(), rz_config_set_b(), rz_config_set_i(), rz_core_bin_load(), rz_core_bin_update_arch_bits(), rz_core_file_open(), rz_core_free(), rz_core_loadlibs(), rz_core_new(), rz_diff_error, rz_print_t::scr_prompt, and UT64_MAX.
Referenced by execute_command(), and rz_diff_graphs_files().
|
static |
Definition at line 254 of file rz-diff.c.
References rz_getopt_t::arg, argv, c, colors, DIFF_DISTANCE_LEVENSHTEIN, DIFF_DISTANCE_MYERS, DIFF_MODE_JSON, DIFF_MODE_QUIET, DIFF_OPT_DISTANCE, DIFF_OPT_ERROR, DIFF_OPT_GRAPH, DIFF_OPT_HELP, DIFF_OPT_HEX_VISUAL, DIFF_OPT_UNIFIED, DIFF_OPT_UNKNOWN, DIFF_OPT_USAGE, DIFF_OPT_VERSION, DIFF_TYPE_BYTES, DIFF_TYPE_CLASSES, DIFF_TYPE_COMMAND, DIFF_TYPE_ENTRIES, DIFF_TYPE_FIELDS, DIFF_TYPE_FUNCTIONS, DIFF_TYPE_IMPORTS, DIFF_TYPE_LIBRARIES, DIFF_TYPE_LINES, DIFF_TYPE_PLOTDIFF, DIFF_TYPE_SECTIONS, DIFF_TYPE_STRINGS, DIFF_TYPE_SYMBOLS, free(), height, rz_getopt_t::ind, int, memset(), NULL, rz_diff_ctx_add_evar, rz_diff_ctx_set_def, rz_diff_ctx_set_dist, rz_diff_ctx_set_mode, rz_diff_ctx_set_opt, rz_diff_ctx_set_type, rz_diff_ctx_set_unsigned, rz_diff_error_opt, rz_diff_is_file(), rz_diff_set_def, rz_getopt_init(), rz_getopt_next(), rz_list_newf(), type, ut64(), and width.
Referenced by rz_main_rz_diff().
|
static |
Definition at line 2003 of file rz-diff.c.
References diff_hex_view_t::buffer_a, diff_hex_view_t::buffer_b, diff_hex_view_t::canvas, rz_cons_canvas_t::color, diff_screen_t::height, height, diff_hex_view_t::line, rz_cons_canvas_t::linemode, realloc(), rz_cons_canvas_free(), rz_cons_canvas_new(), rz_cons_get_size(), rz_diff_draw_tui(), diff_hex_view_t::screen, diff_hex_view_t::size_a, diff_hex_view_t::size_b, st64, ut64(), diff_screen_t::width, and width.
Referenced by rz_diff_hex_visual().
|
static |
Definition at line 1152 of file rz-diff.c.
References compare(), diff_file_t::dio, rz_diff_methods_t::elem_at, diff_io_t::filename, NULL, rz_diff_error_ret, rz_diff_file_get, rz_diff_generic_new(), rz_diff_list_elem_at(), rz_list_length(), rz_list_sort(), section_compare(), section_compare_addr(), section_hash(), section_hash_addr(), section_stringify(), section_stringify_addr(), and sections().
Referenced by rz_diff_unified_files().
|
static |
Definition at line 449 of file rz-diff.c.
References diff_io_t::filesize, free(), diff_io_t::io, malloc(), MEGABYTE, NULL, read(), rz_diff_error, rz_diff_io_close(), rz_diff_io_open(), and rz_io_pread_at().
Referenced by rz_diff_calculate_distance(), and rz_diff_unified_files().
|
static |
Definition at line 846 of file rz-diff.c.
References compare(), diff_file_t::dio, rz_diff_methods_t::elem_at, diff_file_t::file, diff_io_t::filename, NULL, rz_bin_file_t::o, rz_bin_object_get_strings(), rz_diff_error_ret, rz_diff_generic_new(), rz_diff_list_elem_at(), rz_list_length(), rz_list_sort(), string_compare(), string_compare_addr(), string_hash(), string_hash_addr(), string_stringify(), and string_stringify_addr().
Referenced by rz_diff_unified_files().
|
static |
Definition at line 771 of file rz-diff.c.
References compare(), diff_file_t::dio, rz_diff_methods_t::elem_at, diff_io_t::filename, NULL, rz_diff_error_ret, rz_diff_file_get, rz_diff_generic_new(), rz_diff_list_elem_at(), rz_list_length(), rz_list_sort(), symbol_compare(), symbol_compare_addr(), symbol_hash(), symbol_hash_addr(), symbol_stringify(), symbol_stringify_addr(), and symbols().
Referenced by rz_diff_unified_files().
|
static |
Definition at line 1297 of file rz-diff.c.
References DIFF_MODE_JSON, DIFF_TYPE_BYTES, DIFF_TYPE_CLASSES, DIFF_TYPE_COMMAND, DIFF_TYPE_ENTRIES, DIFF_TYPE_FIELDS, DIFF_TYPE_FUNCTIONS, DIFF_TYPE_IMPORTS, DIFF_TYPE_LIBRARIES, DIFF_TYPE_LINES, DIFF_TYPE_SECTIONS, DIFF_TYPE_STRINGS, DIFF_TYPE_SYMBOLS, free(), NULL, pj_free(), pj_string(), printf(), rz_diff_bytes_new(), rz_diff_classes_new(), rz_diff_command_new(), rz_diff_entries_new(), rz_diff_error, rz_diff_fields_new(), rz_diff_file_close(), rz_diff_file_open(), rz_diff_free(), rz_diff_imports_new(), rz_diff_libraries_new(), rz_diff_lines_new(), rz_diff_sections_new(), rz_diff_slurp_file(), rz_diff_strings_new(), rz_diff_symbols_new(), rz_diff_unified_json(), and rz_diff_unified_text().
Referenced by rz_main_rz_diff().
Definition at line 2254 of file rz-diff.c.
References argv, DIFF_OPT_DISTANCE, DIFF_OPT_ERROR, DIFF_OPT_GRAPH, DIFF_OPT_HELP, DIFF_OPT_HEX_VISUAL, DIFF_OPT_UNIFIED, DIFF_OPT_USAGE, DIFF_OPT_VERSION, rz_diff_calculate_distance(), rz_diff_graphs_files(), rz_diff_hex_visual(), rz_diff_parse_arguments(), rz_diff_show_help(), rz_diff_unified_files(), rz_list_free(), and rz_main_version_print().
Referenced by MAIN_NAME(), and rz_main_rizin().
|
static |
Definition at line 1130 of file rz-diff.c.
References a, b, IF_STRCMP_S, and st64.
Referenced by rz_diff_sections_new().
|
static |
Definition at line 1083 of file rz-diff.c.
References a, b, IF_STRCMP_S, and st64.
Referenced by rz_diff_sections_new().
|
static |
Definition at line 1122 of file rz-diff.c.
References rz_bin_section_t::align, rz_bin_section_t::name, rz_bin_section_t::perm, and rz_diff_hash_data().
Referenced by rz_diff_sections_new().
|
static |
Definition at line 1067 of file rz-diff.c.
References rz_bin_section_t::align, rz_bin_section_t::name, rz_bin_section_t::paddr, rz_bin_section_t::perm, rz_diff_hash_data(), rz_bin_section_t::size, rz_bin_section_t::vaddr, and rz_bin_section_t::vsize.
Referenced by rz_diff_sections_new().
|
static |
Definition at line 1140 of file rz-diff.c.
References rz_bin_section_t::align, rz_bin_section_t::name, rz_bin_section_t::perm, PFMT64x, RZ_PERM_R, RZ_PERM_SHAR, RZ_PERM_W, RZ_PERM_X, rz_strbuf_setf(), and sb.
Referenced by rz_diff_sections_new().
|
static |
Definition at line 1109 of file rz-diff.c.
References rz_bin_section_t::align, rz_bin_section_t::name, rz_bin_section_t::paddr, rz_bin_section_t::perm, PFMT64x, RZ_PERM_R, RZ_PERM_SHAR, RZ_PERM_W, RZ_PERM_X, rz_strbuf_setf(), sb, rz_bin_section_t::size, rz_bin_section_t::vaddr, and rz_bin_section_t::vsize.
Referenced by rz_diff_sections_new().
|
inlinestatic |
Definition at line 1602 of file rz-diff.c.
References DIFF_HEX_16, DIFF_HEX_32, diff_hex_view_t::screen, diff_screen_t::width, and width.
Referenced by rz_diff_draw_tui().
|
inlinestatic |
Definition at line 1612 of file rz-diff.c.
References DIFF_HEX_16, DIFF_HEX_32, diff_hex_view_t::screen, diff_screen_t::width, and width.
Referenced by rz_diff_hex_visual().
|
static |
Definition at line 832 of file rz-diff.c.
References a, b, IF_STRCMP_S, and st64.
Referenced by rz_diff_strings_new().
|
static |
Definition at line 810 of file rz-diff.c.
References a, b, IF_STRCMP_S, and st64.
Referenced by rz_diff_strings_new().
|
static |
Definition at line 828 of file rz-diff.c.
References rz_diff_hash_data(), rz_bin_string_t::size, and rz_bin_string_t::string.
Referenced by rz_diff_strings_new().
|
static |
Definition at line 801 of file rz-diff.c.
References rz_bin_string_t::paddr, rz_diff_hash_data(), rz_bin_string_t::size, rz_bin_string_t::string, and rz_bin_string_t::vaddr.
Referenced by rz_diff_strings_new().
|
static |
Definition at line 842 of file rz-diff.c.
References rz_strbuf_setf(), sb, and rz_bin_string_t::string.
Referenced by rz_diff_strings_new().
|
static |
Definition at line 824 of file rz-diff.c.
References rz_bin_string_t::paddr, PFMT64x, rz_strbuf_setf(), sb, rz_bin_string_t::string, and rz_bin_string_t::vaddr.
Referenced by rz_diff_strings_new().
|
static |
Definition at line 761 of file rz-diff.c.
References a, b, and IF_STRCMP_S.
Referenced by rz_diff_symbols_new().
|
static |
Definition at line 740 of file rz-diff.c.
References a, b, IF_STRCMP_S, and st64.
Referenced by rz_diff_symbols_new().
|
static |
Definition at line 757 of file rz-diff.c.
References rz_bin_symbol_t::name, and rz_diff_hash_data().
Referenced by rz_diff_symbols_new().
|
static |
Definition at line 728 of file rz-diff.c.
References rz_bin_symbol_t::classname, rz_bin_symbol_t::dname, rz_bin_symbol_t::libname, rz_bin_symbol_t::name, rz_bin_symbol_t::paddr, rz_diff_hash_data(), and rz_bin_symbol_t::vaddr.
Referenced by rz_diff_symbols_new().
|
static |
Definition at line 767 of file rz-diff.c.
References rz_bin_symbol_t::classname, rz_bin_symbol_t::libname, rz_bin_symbol_t::name, rz_strbuf_setf(), and sb.
Referenced by rz_diff_symbols_new().
|
static |
Definition at line 753 of file rz-diff.c.
References rz_bin_symbol_t::classname, rz_bin_symbol_t::libname, rz_bin_symbol_t::name, rz_bin_symbol_t::paddr, PFMT64x, rz_strbuf_setf(), sb, and rz_bin_symbol_t::vaddr.
Referenced by rz_diff_symbols_new().
|
static |
Definition at line 1840 of file rz-diff.c.
References diff_hex_view_t::colors, diff_screen_t::height, NULL, prompt(), diff_colors_t::reset, rz_cons_clear_line(), rz_cons_fgets(), rz_cons_flush(), rz_cons_gotoxy(), rz_cons_printf(), rz_line_set_prompt(), diff_hex_view_t::screen, and strdup().
Referenced by prompt_offset_and_seek(), and prompt_offset_and_seek_file().