119 Commits

Author SHA1 Message Date
pancake
a87fdf66ee Fix duplicated function signatures in RCore spotted by Emscripten 2020-04-02 15:53:31 +02:00
pancake
d2b29db4c9 Remove globals from rax2 ##refactor 2020-02-17 16:52:28 +01:00
radare
82416b0212
Create libr_main and make all binaries use it ##core
* Cleanup the use of getopt with our wrapper
2019-03-08 14:22:59 +01:00
Rahul Sangwan
be654b89d3 Unescape chars when using rax2 -S
this commit resolve second part of #12862 (#12985)
2019-02-08 16:37:42 +01:00
Maijin
8f94d413cd Standardize version using blob_version ##refactor 2019-01-12 22:22:43 +01:00
r4dix10
ad4013932d Issue #10780 -o for octal string to character (#12561) 2018-12-25 23:24:41 +01:00
lzutao
50320592a6 Fix #12060 and #12072 - Rewrite r_num_abs and r_num_units ##core
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
2018-11-14 23:35:44 +01:00
pancake
701ecb2835 More include fixes 2018-11-14 13:12:34 +01:00
Artem Zinenko
4a2bc97a35 Fix #11918 - Moved r_print.h into r_util/r_print.h 2018-11-14 10:54:22 +01:00
radare
71053f17e9
Move trie, mixed, slist into Sdb's Attic, and DES from util to crypto ##refactor 2018-11-07 17:18:14 +01:00
Khairul Azhar Kasmiran
d42b734a84
rax2: add new output mode for Fx (#10840)
* rax2: add new output mode for Fx

* Reversed order of tests
2018-07-29 11:04:52 +08:00
Tyler Lambert
8255f2a96c Verify input is not in hex before interpreting as float (#10821)
* verify input is not in hex before interpreting as float

* check for "0x" prefix before converting to float
2018-07-28 13:18:13 +08:00
Paolo Monti
b32dd4ca9f Fix #2639, added support for javascript byte arrays in rax2 -F (#10065) 2018-05-11 10:58:16 +02:00
Paolo Monti
cf91e24448 Removal of dead code for rax2 -P (#10016) 2018-05-06 17:26:16 +02:00
Paolo Monti
6c4131bbaf Fix #9986, implemented rax2 -i functionality, to mimic xxd -i (#10009) 2018-05-05 00:57:11 +02:00
pancake
7e9fd8b740 ? output is no longer a oneliner 2018-04-14 17:34:27 +02:00
Akshay Ajayan
fc424815a2 Move ascii table to utils and add ?a command in r2 2018-03-21 18:36:42 +01:00
r00tus3r
e16b1ef1c8 Adding ascii table 2018-03-16 11:13:55 +01:00
Khairul Kasmiran
3e8a5b5677 rax2: -E honors -l 2018-01-29 19:21:59 +08:00
kriw
6c2a366e53 rax2 Impl r_hex_ from_py (#9007)
* add parser for python

* add P flag for hex from python

* Revert "add P flag for hex from python"

This reverts commit 23a4721ef81a7d14216673f688799f46d913c2d9.

* detect language automatically
2017-12-13 12:01:27 +01:00
kriw
551d7bebb6 rax2 fix overflow (#8928)
* fix overflow

* pass NULL to r_print_hex_from_bin in rax2
2017-12-02 16:15:23 +01:00
kriw
ee1de0ab9b Fix #2479 impl bin -> hex (bignum) (#8925) 2017-12-01 16:00:22 +01:00
kriw
f889441483 Support ternary values in rax2 2017-11-14 03:04:09 +09:00
pancake
c5a74500cb Fix read underflow in rax2 2017-11-09 12:21:43 +01:00
Fangrui Song
a38a1ac185 rax2.c: fix out-of-bounds read (#8353) 2017-08-28 10:14:23 +02:00
pancake
91325d8d56 Add -l to append newline when decoding hex/b64 strings to rax2 2017-07-28 14:19:32 +02:00
pancake
67752c4d14 Add rax2 -D in the help message 2017-06-06 19:24:53 +02:00
alvarofe
42fb071d4b Fix #7198 - static code analysis by AppChecker 2017-04-02 12:22:04 +02:00
pancake
f1a31c0730 Fix #7006 - Support decimal in unit strings (f.ex: 2.3K) 2017-03-12 23:15:57 +01:00
pancake
0ae4a5c3e8 More r2-indent fixes. and reindent a bunch of files 2017-02-20 02:54:16 +01:00
pancake
70930f4496 Bring back the interest on sys/indent.sh 2017-02-10 02:05:58 +01:00
pancake
529c578487 Fix rax2 Ox (octal output) 2017-01-09 00:46:32 +01:00
pancake
620234f69d Fix windows build 2016-11-09 02:42:59 +01:00
vraelvrangr
f225ec0bc3 Fixing help issues in rax2 2016-11-02 00:06:08 +01:00
pancake
cea2c80d56 Show flags in dm, add dmq and add resolver in rnum 2016-10-16 02:34:54 +02:00
BlueC0re
8a5b5ae7b7 added support for escape sequences in r_num_as_string (#5897) 2016-10-06 11:24:39 +02:00
pancake
e10c664c55 Add msr/mrs for the armass64 assembler 2016-09-16 18:27:42 +02:00
monosource
67b1e63ab3 Fix rax2 b/B usage (#5411) 2016-07-28 15:28:31 +02:00
Maijin
80171b0dc5 Cleaning r_util.h 2016-07-27 16:55:20 +02:00
Maijin
6464e44a75 Fix #4834 2016-05-11 20:46:24 +02:00
Sven Steinbauer
b276795f1c Add r2 -r ? style output to rax2 2016-05-10 22:13:24 +02:00
Damien Zammit
af0a865d9f WIP - Totally remove host endianness dependence
- Adds endian aware functions
- Removes references to host endian
- Uses binary detected endianness else tries LE and restricts by RAsmPlugin
- Fixes gdb debugger endianness when debugging BE qemu gdbserver

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-04 23:42:17 +10:00
pancake
5ef2b3cc0f Fix many warnings 2016-04-11 12:22:15 +02:00
Anton Kochkov
232ce009fd Fix CID 1353775 2016-04-06 01:00:08 +03:00
pancake
a2bd77e43d Fix #4501 - implement rax2 -B and fix -b 2016-04-05 00:55:57 +02:00
Álvaro Felipe Melchor
b0c6ae4409 Fix #4295 and #4155
This commit is the first attempt to improve relocation
recognition when dealing with relocatables elf-files
2016-04-04 23:09:58 +02:00
Álvaro Felipe Melchor
bbf8685b3a Fix #4244 - oob write rax2 2016-03-07 01:02:03 +01:00
Matthieu Tardy
1a573e1056 Cleanup binr/*/*.c
r2agent:
- Fix the usage to match other r2 binaries.
- Remove trailing whitespace.
- Remove addressed TODO.
- Add a default case to display usage and exit if -p option was used
  without argument.
- Return 1 instead of 0 if too much arguments are provided.
- Small coding style fixes.

radiff2:
- Small coding style fixes.

rafind2:
- Add a default case to display usage and exit if an option have a missing
  argument or getopt does not recognize an option character.
- Small coding style fixes.

ragg2:
- Small coding style fixes.

rahash2:
- Remove useless optarg check.
- Missing arguments and unknown options now display usage and exit.
- Small coding style fixes.

rarun2:
- Small coding style fixes.

rasm2:
- Small coding style fixes.
- Missing arguments and unknown options now display usage and exit.

rax2:
- Small coding style fixes.

radare2:
- Missing arguments and unknown options now display usage and exit.
- Small coding style fixes.
2016-03-05 19:52:42 +01:00
pancake
c8abef97ea Fix base64 decoding overflow in rax2 2016-02-27 16:10:02 +01:00
Goncalo Carvalho
c4ea7fd354 convert negative fp numbers to hex and add static assert macro 2016-01-23 23:20:52 +01:00