Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdint.h>
#include <assert.h>
Go to the source code of this file.
Classes | |
struct | tab |
struct | string_t |
Macros | |
#define | local static |
#define | PRIbig "ju" |
Typedefs | |
typedef uintmax_t | big_t |
typedef uintmax_t | code_t |
Functions | |
void | string_clear (string_t *s) |
void | string_init (string_t *s) |
void | string_free (string_t *s) |
void | string_printf (string_t *s, char *fmt,...) |
size_t | map (int syms, int left, int len) |
void | cleanup (void) |
big_t | count (int syms, int left, int len) |
int | been_here (int syms, int left, int len, int mem, int rem) |
void | examine (int syms, int left, int len, int mem, int rem) |
void | enough (int syms) |
int | main (int argc, char **argv) |
Variables | |
struct { | |
int max | |
int root | |
int large | |
size_t size | |
big_t tot | |
string_t out | |
int * code | |
big_t * num | |
struct tab * done | |
} | g |
Definition at line 308 of file enough.c.
References assert(), bit, calloc(), g, len, length, map(), mem, memset(), NULL, realloc(), and vector.
Referenced by examine().
void cleanup | ( | void | ) |
Definition at line 244 of file enough.c.
References free(), g, n, NULL, and string_free().
Referenced by anop_esil(), cmd_print_blocks(), fs__scandir(), get_bbnodes(), lang_pipe_run(), main(), parse_enumerate(), parse_enumerator(), parse_function(), parse_info_raw(), parse_struct_member(), parse_typedef(), parse_union_member(), print_diff(), rebase_info_populate(), rip(), rz_analysis_function_args(), rz_core_visual_analysis_classes(), sections_print_table(), uv__pipe_getname(), uv_interface_addresses(), xnu_generate_corefile(), and xnu_write_mem_maps_to_buffer().
void enough | ( | int | syms | ) |
Definition at line 454 of file enough.c.
References examine(), g, map(), n, printf(), and string_clear().
Referenced by main().
Definition at line 361 of file enough.c.
References assert(), been_here(), bits(), g, len, mem, string_clear(), and string_printf().
Referenced by enough().
Definition at line 498 of file enough.c.
References argv, assert(), bits(), calloc(), cleanup(), count(), enough(), g, n, NULL, PRIbig, printf(), and string_init().
Definition at line 237 of file enough.c.
Referenced by __core_analysis_fcn(), __core_cmd_search_asm_infinite(), __core_visual_gogo(), __io_maps(), add_map(), addroflib(), append_bound(), apply_maps_as_flags(), asciiart_backtrace(), basefind_create_pointer_map(), been_here(), bp_is_mapped(), bsd_native_sysctl_map(), canWrite(), cmd_debug_current_modules(), cmd_debug_modules(), cmd_print_bars(), cmd_print_blocks(), count(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), do_analysis_search(), do_asm_search(), do_esil_search(), do_section_search(), do_string_search(), do_syscall_search(), ds_init(), dump_maps(), enough(), findMinMax(), get_base_from_maps(), get_brks(), get_closest_map(), get_esil_stack_name(), get_file_name_from_handle(), get_main_arena_with_symbol(), get_maps_unpatched(), GetHeapGlobalsOffset(), id2name(), io_create_mem_map(), io_map_calculate_skyline(), io_map_new(), is_tcache(), isValidAddress(), load_buffer(), map_del(), map_enum(), map_free(), maps(), meta_for_reloc(), moduleAt(), name2id(), num_callback(), on_map_skyline(), open_maps_list(), open_maps_show(), parse_namemap(), parse_options(), perform_mapped_file_yank(), populate_cache_maps(), print_cmd_analysis_after_traps_print(), print_debug_map_json(), print_debug_map_line(), print_debug_maps_ascii_art(), proc_mem_img(), run_basic_block_analysis(), rz_analysis_try_get_fcn(), rz_analyze_all_consecutive_functions_in_section_handler(), rz_bin_file_at(), rz_bin_map_free(), rz_bin_maps_of_file_sections(), rz_bin_object_get_map_at(), rz_bin_object_get_maps_at(), rz_bin_object_p2v_all(), rz_bin_object_sections_mapping_list(), rz_bin_relocs_patch_find_targets_map_base(), rz_bin_relocs_patch_maps(), rz_bin_sections_of_maps(), rz_cmd_debug_deallocate_map_handler(), rz_cmd_debug_dmi(), rz_cmd_debug_dml_handler(), rz_cmd_debug_dmS_handler(), rz_cmd_help(), rz_cmd_search(), rz_core_analysis_address(), rz_core_analysis_calls(), rz_core_analysis_code_count(), rz_core_analysis_coverage_count(), rz_core_analysis_esil_default(), rz_core_analysis_get_stats(), rz_core_analysis_hasrefs_to_depth(), rz_core_analysis_refs(), rz_core_analysis_value_pointers(), rz_core_bin_apply_maps(), rz_core_bin_sections_mapping_print(), rz_core_cmd_foreach3(), rz_core_debug_map_print(), rz_core_extend_at(), rz_core_file_close(), rz_core_file_io_map_deleted(), rz_core_file_open_load(), rz_core_get_boundaries_prot(), rz_core_get_section_name(), rz_core_io_file_reopen(), rz_core_pava(), rz_core_search_rop(), rz_core_visual_cmd(), rz_core_visual_title(), rz_debug_add_checkpoint(), rz_debug_bp_add(), rz_debug_dmp_init(), rz_debug_dmp_maps(), rz_debug_gdb_map_get(), rz_debug_gdb_modules_get(), rz_debug_get_baddr(), rz_debug_map_alloc(), rz_debug_map_clone(), rz_debug_map_dealloc(), rz_debug_map_free(), rz_debug_map_get(), rz_debug_map_new(), rz_debug_memory_permission_handler(), rz_debug_session_list_memory(), rz_debug_snap_map(), rz_debug_thread_list(), rz_debug_winkd_maps(), rz_heap_resolve_main_arena(), rz_io_desc_exchange(), rz_io_is_valid_offset(), rz_io_map_cleanup(), rz_io_map_del(), rz_io_map_del_for_fd(), rz_io_map_del_name(), rz_io_map_depriorize(), rz_io_map_exists(), rz_io_map_fini(), rz_io_map_get_for_fd(), rz_io_map_get_paddr(), rz_io_map_next_address(), rz_io_map_next_available(), rz_io_map_priorize(), rz_io_map_priorize_for_fd(), rz_io_map_remap(), rz_io_map_remap_fd(), rz_io_map_resize(), rz_io_map_resolve(), rz_io_map_set_name(), rz_io_open_at(), rz_io_p2v(), rz_io_v2p(), rz_main_rizin(), rz_open_maps_all_fd_handler(), rz_open_maps_flags_global_handler(), rz_open_maps_flags_handler(), rz_open_maps_list_ascii_handler(), rz_open_maps_list_cur_handler(), rz_open_maps_map_fd_handler(), rz_open_maps_map_handler(), rz_open_maps_name_del_handler(), rz_open_maps_name_handler(), rz_open_maps_name_id_del_handler(), rz_open_maps_name_id_handler(), rz_open_maps_prioritize_binid_handler(), rz_open_maps_relocate_current_handler(), rz_open_show_current_handler(), rz_resolve_jemalloc(), rz_seek_begin_handler(), rz_seek_end_handler(), rz_type_format_nulltermstring(), search_hash(), set_mod_inf(), make_dist_html::version(), windbg_map_get(), winkd_walk_vadtree(), and xnu_map_free().
void string_clear | ( | string_t * | s | ) |
void string_free | ( | string_t * | s | ) |
void string_init | ( | string_t * | s | ) |
void string_printf | ( | string_t * | s, |
char * | fmt, | ||
... | |||
) |
struct tab* done |
Definition at line 233 of file enough.c.
Referenced by _zip_guess_encoding(), Array(), do_analysis_search(), do_string_search(), file_ascmagic(), file_looks_utf8(), file_or_fd(), get_relocs(), init_file_tables(), iob_read(), iob_write(), reconstruct_chained_fixup(), rz_core_analysis_propagate_noreturn(), rz_core_debug_esil(), rz_core_search_cb(), rz_core_theme_nextpal(), rz_io_zip_open(), rz_rbtree_aug_insert(), rz_str_version(), rz_strbuf_vsetf(), rz_write_from_socket_handler(), rzfind_open_file(), rzp_open_spawn(), ts_query__analyze_patterns(), uv__fs_read(), uv__fs_write(), uv__hrtime(), uv__work_submit(), uv_accept(), uv_pipe_chmod(), uv_process_tcp_read_req(), uv_process_udp_recv_req(), uv_set_process_title(), and uv_spawn().
struct { ... } g |
Referenced by __approximate_rgb(), __lookup_rgb(), __unrgb(), _qnxr_remove_bp(), _qnxr_set_bp(), _resolve_arch(), _server_handle_c(), _server_handle_exec_file_read(), _server_handle_g(), _server_handle_Hc(), _server_handle_Hg(), _server_handle_k(), _server_handle_M(), _server_handle_m(), _server_handle_p(), _server_handle_P(), _server_handle_qAttached(), _server_handle_qC(), _server_handle_qfThreadInfo(), _server_handle_qOffsets(), _server_handle_qsThreadInfo(), _server_handle_qSupported(), _server_handle_qTfV(), _server_handle_qTStatus(), _server_handle_ques(), _server_handle_s(), _server_handle_vCont(), _server_handle_vKill(), _server_handle_vMustReplyEmpty(), _server_handle_z(), adjust_class(), adjust_class_val(), adjust_directions(), agraph_follow_false(), agraph_follow_innodes(), agraph_follow_true(), agraph_get_title(), agraph_init(), agraph_next_node(), agraph_prev_node(), agraph_print(), agraph_print_edges(), agraph_print_edges_simple(), agraph_print_node(), agraph_print_nodes(), agraph_refresh(), agraph_reload_nodes(), agraph_sdb_init(), agraph_set_layout(), agraph_set_zoom(), agraph_toggle_callgraph(), agraph_toggle_mini(), agraph_toggle_speed(), agraph_toggle_tiny(), agraph_update_seek(), agraph_update_title(), append(), append_shortcut(), assign_layers(), backedge_info(), backref(), been_here(), bfvm_trace_op(), categorize(), check_changes(), cleanup(), clusterProcessGossipSection(), cmd_print_gadget(), collect_changes(), combine_sequences(), compute_classes(), compute_pos(), compute_vertical_nodes(), count(), count_edges(), create_dummy_nodes(), create_layers(), decode_bits(), delete_dup_edges(), dem_str_replace(), dfs_node(), dissect(), dist_nodes(), dot_trace_discover_child(), drx_get_at(), drx_list(), emit_branch(), enough(), examine(), find_autocmplt_type_at_stmt(), find_autocmplt_type_at_stmt_op(), find_autocmplt_type_newcmd_or_arg(), find_autocmplt_type_quoted_arg(), find_near_of(), findmust(), fix_back_edge_dummy_nodes(), fold_asm_trace(), follow_nth(), gdbr_attach(), gdbr_break_process(), gdbr_check_extended_mode(), gdbr_check_vcont(), gdbr_cleanup(), gdbr_close_file(), gdbr_connect(), gdbr_connect_lldb(), gdbr_continue(), gdbr_detach(), gdbr_detach_pid(), gdbr_disconnect(), gdbr_exec_file_read(), gdbr_get_baddr(), gdbr_init(), gdbr_is_thread_dead(), gdbr_kill(), gdbr_kill_pid(), gdbr_lock_enter(), gdbr_lock_leave(), gdbr_lock_tryenter(), gdbr_open_file(), gdbr_parse_processes_xml(), gdbr_parse_target_xml(), gdbr_pids_list(), gdbr_read_feature(), gdbr_read_file(), gdbr_read_memory(), gdbr_read_memory_page(), gdbr_read_osdata(), gdbr_read_processes_xml(), gdbr_read_registers(), gdbr_read_registers_lldb(), gdbr_read_target_xml(), gdbr_remove_bp(), gdbr_remove_hwa(), gdbr_remove_hwbp(), gdbr_remove_hwr(), gdbr_remove_hww(), gdbr_select(), gdbr_send_qRcmd(), gdbr_server_serve(), gdbr_set_architecture(), gdbr_set_bp(), gdbr_set_hwa(), gdbr_set_hwbp(), gdbr_set_hwr(), gdbr_set_hww(), gdbr_set_reg_profile(), gdbr_step(), gdbr_stop_reason(), gdbr_threads_list(), gdbr_write_bin_registers(), gdbr_write_memory(), gdbr_write_reg(), gdbr_write_register(), gdbr_write_registers(), get_bbnodes(), get_bbupdate(), get_cgnodes(), get_crossing_matrix(), get_edge_number(), get_graph_string(), get_graphtrace_node(), get_right_dummy(), get_sibling(), gethtmlrgb(), goto_asmqjmps(), graph_single_step_in(), graph_single_step_over(), graphNodeMove(), guess_data_free(), guess_next_autocmplt_token(), handle_attach(), handle_cont(), handle_g(), handle_G(), handle_lldb_read_reg(), handle_m(), handle_M(), handle_P(), handle_qC(), handle_qStatus(), handle_qSupported(), handle_removebp(), handle_setbp(), handle_stop_reason(), handle_vFile_close(), handle_vFile_open(), handle_vFile_pread(), init_color_table(), is_comments(), is_mini(), is_offset(), is_reversed(), is_summary(), is_tiny(), is_valid_pos(), isinsets(), iter_set_info(), layer_sweep(), main(), map(), matcher(), mini_RzANode_print(), minimize_crossings(), mode2opts(), move_current_node(), nextword(), normal_RzANode_print(), nto_parse_notify(), nto_send(), nto_send_arg(), nto_send_env(), nto_send_init(), original_traverse_l(), p_simp_re(), pack(), place_dummies(), place_nodes(), place_nodes_val(), place_original(), place_sequence(), place_single(), pluscount(), print_double_linked_list_bin_graph(), qnxr_attach(), qnxr_cleanup(), qnxr_connect(), qnxr_continue(), qnxr_disconnect(), qnxr_init(), qnxr_pidlist(), qnxr_read_memory(), qnxr_read_packet(), qnxr_read_registers(), qnxr_remove_bp(), qnxr_remove_hwbp(), qnxr_run(), qnxr_select(), qnxr_send_ch_debug(), qnxr_send_ch_reset(), qnxr_send_ch_text(), qnxr_send_nak(), qnxr_send_packet(), qnxr_send_vcont(), qnxr_set_architecture(), qnxr_set_bp(), qnxr_set_hwbp(), qnxr_step(), qnxr_stop(), qnxr_wait(), qnxr_write_memory(), qnxr_write_reg(), qnxr_write_register(), rcc_context(), read_packet(), rebase(), reg_cache_init(), reload_nodes(), remove_bp(), remove_cycles(), rgb(), run_f_list(), rz_agraph_add_edge(), rz_agraph_add_edge_at(), rz_agraph_add_node(), rz_agraph_add_node_with_color(), rz_agraph_del_edge(), rz_agraph_del_node(), rz_agraph_foreach(), rz_agraph_foreach_edge(), rz_agraph_free(), rz_agraph_get_first_node(), rz_agraph_get_node(), rz_agraph_get_sdb(), rz_agraph_new(), rz_agraph_print(), rz_agraph_print_json(), rz_agraph_reset(), rz_agraph_set_curnode(), rz_agraph_set_title(), rz_cmd_heap_chunks_print_handler(), rz_cmd_print_gadget_add_handler(), rz_cmd_print_gadget_move_handler(), rz_cmd_print_gadget_print_as_rizin_handler(), rz_cons_color(), rz_cons_pal_show_256(), rz_cons_rgb_gen(), rz_cons_rgb_parse(), rz_cons_rgb_tostring(), rz_core_gadget_free(), rz_core_gadget_print(), rz_core_meta_print(), rz_core_rtr_gdb_cb(), rz_core_rtr_gdb_run(), rz_core_visual_graph(), rz_debug_bochs_attach(), rz_debug_drx_set(), rz_debug_gdb_attach(), rz_debug_qnx_attach(), rz_graph_adjacent(), rz_graph_dfs(), rz_graph_dfs_node(), rz_graph_dfs_node_reverse(), rz_graph_get_nodes(), rz_graph_node_split_forward(), rz_rbtree_aug_delete(), rz_rbtree_aug_insert(), rz_regex_comp(), rz_regex_exec(), rz_regex_fini(), rz_str_replace(), rz_str_replace_icase(), rz_str_replace_in(), rz_str_replace_thunked(), samesets(), send_ack(), send_msg(), send_packet(), send_vcont(), set_bp(), set_dist_nodes(), set_layer_gap(), set_layout(), SHA256_Transform(), SHA512_Transform(), step(), stop_reason_exit(), stop_reason_terminated(), stripsnug(), test_command(), unpack(), update_graph_sizes(), update_node_dimension(), user_edge_cb(), and view_cyclic_edge().
int max |
Definition at line 225 of file enough.c.
Referenced by __handle_tab(), _zip_checkcons(), annotated_hexdump(), arr_exist(), arr_exist8(), backedge_info(), bsd_thread_list(), buf_sparse_read(), buf_sparse_seek(), buf_sparse_size(), clusterAcceptHandler(), clusterGetMaxEpoch(), cmd_print_eq_dict(), compress2(), consume_init_expr_r(), consume_limits_r(), consume_locals_r(), consume_r(), consume_s7_r(), consume_str_r(), consume_u1_r(), consume_u32_r(), consume_u7_r(), findClassBounds(), findMethodBounds(), findMinMax(), flagbar_foreach(), FUZZ_dataProducer_range32(), FUZZ_getRange_from_uint32(), FUZZ_rand32(), get_args_offset(), get_entries_from_section(), gz_comp(), gz_load(), HEAP_EXPORT(), id2name(), inflate_table(), inflate_table9(), insn_find(), list_count(), log_compress(), lunpipe(), lzma_mt_block_size(), mpc_err_string(), name2id(), parse_code_entry(), parse_custom_name_entry(), parse_data_entry(), parse_element_entry(), parse_export_entry(), parse_global_entry(), parse_import_entry(), parse_memory_entry(), parse_namemap(), parse_options(), parse_table_entry(), parse_type_entry(), print_debug_maps_ascii_art(), read_i32_leb128(), read_i64_leb128(), read_u32_leb128(), read_u64_leb128(), rz_bin_relocs_patch_find_targets_map_base(), rz_bin_wasm_get_custom_name_entries(), rz_bin_wasm_get_sections(), rz_bin_wasm_get_start(), rz_cmd_search(), rz_coff_get_reloc_targets_map_base(), rz_core_analysis_fcn_merge(), rz_core_visual_cmd(), rz_num_rand(), rz_print_rangebar(), rz_search_privkey_update(), rz_search_set_string_limits(), rz_table_visual_list(), saturate_signed(), saturate_signed_to_range(), saturate_unsigned(), sparse_limits(), str_to_uint64(), TAG_CALLBACK(), type_match(), and uncompress2().
int root |
Definition at line 226 of file enough.c.
Referenced by __handle_tab_new_with_cur_panel(), __init_panels_menu(), core_cmd_tsrzcmd(), find_autocmplt_type(), find_autocmplt_type_arg_identifier(), flirt_node_optimize(), flirt_node_shorten_and_insert(), flirt_pat_parse_line(), foreach_list_cb(), guess_next_autocmplt_token(), inflate_table(), inflate_table9(), main(), parser__accept(), rz_asn1_to_string(), rz_core_rtr_http_run(), rz_file_root(), rz_il_op_new_seqn(), rz_interval_tree_delete(), rz_interval_tree_insert(), rz_line_autocomplete(), rz_rbtree_aug_delete(), rz_rbtree_aug_insert(), rz_rbtree_aug_update_sum(), rz_rbtree_delete(), rz_rbtree_insert(), rz_rbtree_lower_bound_forward(), rz_rbtree_upper_bound_backward(), rz_search_pattern(), rz_sign_flirt_node_new(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_sign_flirt_write_string_pattern_to_buffer(), sdb_querys(), substitute_args_do(), ts_parser__accept(), ts_tree_new(), walk_exports(), and walk_namespace().