* clang-format-diff: do not put space after Elf_
* bin/elf: remove warning because it's already printed by R_LOG_WARN
* bin/elf: rename get_static to is_static
* bin/elf: a bit of refactoring in init_dynamic_section
* Revert "bin/elf: other cleaning"
This reverts commit e39af6f69e.
* bin/elf: cleaning in r_bin_elf_get_sections
* bin/elf: refactor a bit get_sections_from_phdr
* bin/elf: fix create_section_from_phdr
* bin/elf: small style fixes in get_boffset
* bin/elf: simplify the code by using READWORD instead of #if/#else
* bin/elf: fix read_phdr because you need to pay attention to the order
* Use is_vaddr in bin/elf as it is more meaningful
* Do not consider valid symbols with paddr UT64_MAX
This is set when the symbol does not have a paddr, so it means there
cannot be any code there and it's useless analyzing it.
* use virtual addresses to deal with the MZ header and reloc table not being part of the load module
* handle wrapping for CS:IP
* rework r_bin_mz_get_segments
Signed-off-by: p2 <p2@psychaos.be>
* bin_xtr_fatmach0.c: fix memory leak in function extractall
Signed-off-by: Young_X <YangX92@hotmail.com>
* check return value of r_list_newf in function oneshotall
Signed-off-by: Young_X <YangX92@hotmail.com>
* ufs: prevent memory leak
Signed-off-by: Young_X <YangX92@hotmail.com>
* minix: prevent memory leak
Signed-off-by: Young_X <YangX92@hotmail.com>
* jfs: fix memory leak in grub_js_find_file
Signed-off-by: Young_X <YangX92@hotmail.com>
* r_anal_plugin_free: fix null pointer deference for para a
Signed-off-by: Young_X <YangX92@hotmail.com>
* fix null pointer deference in function fix_back_edge_dummy_nodes
since ptr from and to may be NULL
Signed-off-by: Young_X <YangX92@hotmail.com>
* bin/filter: correctly allocate strings when filtering them
Directly reallocate strings when filtering them, because it is very hard for
the caller to know before hand the correct size of the string otherwise. The
patch uses r_str_ APIs to makes this easy.
some archs do not even have a default calling convention, so let's just
skip them for now and print a log. It means we probably need to
implement other things to make arguments analysis work on those archs.
* r_bin_close should be r_bin_file_close
* moved bin/open.c into bin.c
* set BinFile id in r_bin_load_io
* use r_bin_open_io instead of r_bin_load_io
* also prefer RBinOptions instead of multiple arguments
* rename r_bin_load to r_bin_open and use RBinOptions
The behavior of the `<ctype.h>` functions is undefined for negative
arguments (other than `EOF`). In such a situation, the argument should
be cast to `unsiged char` for safety.
References:
- C Programming: A Modern Approach, 2nd Edition: page 612, chapter 23.5