* 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.
r_num_abs:
- Make r_num_abs static inline
- Use unsigned long long type when defining TB macro
- Use st64 instead of long long
r_num_units:
- Add len argument for buf in r_num_units
- Add PB and EB for r_num_units
- Always display one number after decimal point
* This change simplifies the code
- Use long double type as assigning from ut64 to double cause data loss
r_num_tail_base:
- Use isxdigit (fast) instead of isHexDigit (slower)
- Rename nth to get_nth_nibble
Update all functions to use with new r_num_units:
- Remove side effect when using in other functions like cb_printf
* Trim trailing .0 when input is power of 2
* 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>
* 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