* Correctly get the address of the PLT entry for a symbol. If the symbol
was not yet added to the .got.r2 section, then take the first available
address (vaddr), otherwise retrieve it from the hashtable.
* Avoid showing wrong relocations when relocations are already replaced
* Avoid duplication of SDB headers in libr/include
SDB is an external project and as such it should live in shlr. However,
for simplicity in dealing with the include flags, the SDB headers were
copied in libr/include as well. This patch just keeps the SDB files
confined in shlr/sdb and make sure various r_* libs use the headers from
there.
* Fix pkgconfig file generation
* Do not check with r_return_ if the convention is present
Let's just assume the NULL default in such a case, so that architectures
for which we don't have a defined calling convention can still be
processed somehow by the analysis code. It won't be precise, but it's
better than nothing.
Also add a warning message so users are aware when the calling
convention is not defined.
* Fix oob-read when # is at the end of the cmd string
* Do not set TMPDIR when the new value is the empty string
When TMPDIR is set to empty value, clang+ld behaves in weird ways and
you cannot compile files from within the r2 shell (e.g. when using #!c
or #!cpipe)
* Use meson and add -lasan to pkgconfig files when sanitizer are used
* div by 0
* null deref in r_bin_dex_free
* null deref in get_object
* memset to 0 new capacity if we increase, to avoid garbage in the vector.
* null deref in extract_sections_symbols
* printfs. and moved insert after null deref check.
* moved check before adding the cobj into list.
* moved i definition inside if.
* using r2 macros.
* changed condition to sym_size == 0
* changed condition to if (ret) do smth
* refactoring
* code formatting
* added r_pvector_new_with_len to fix issue with bad usage of RPVector
* using r_pvector_new instead DUP
* Removed check which doesn't make sense and formatting
Co-authored-by: Giovanni Dante Grazioli <giovanni.dantegrazioli@nbs-system.com>
* Add missing ELF DT entries
* Just add common DT entries in the switch case but do not save them
Co-authored-by: Riccardo Schirone <sirmy15@gmail.com>
* Optimize and cleanup the dex_get_proto function ##bin
* Don't skip unknown argument types
* Early catch an integer overflow
* Add test
Co-authored-by: pancake <pancake@nopcode.org>
* Get .debug_info working for DWARF 2, 3
* Fill up missing information in abbrev string table
* Add 64bit dwarf option into debug_info
* Add DWARF4 and DWARF5 forms
* Add unit tests
* added basic test
Co-authored-by: Riccardo Schirone <sirmy15@gmail.com>