88 Commits

Author SHA1 Message Date
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
pancake
44b2e44f3d Add rax2 -w to wrap sign bit 2016-01-22 15:08:42 +01:00
pancake
ccfee9fcca Fix many important issues reported by clang-analyzer 2015-11-22 11:27:45 +01:00
skuater
f5dec28846 Fix for windows stdin input 2015-11-09 22:44:16 +01:00
pancake
6b9671e7a9 Fix Fx.. float conversion in rax2 2015-10-28 10:27:55 +01:00
pancake
198174957c Fix rax2 -F C parser 2015-10-28 10:11:32 +01:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
jvoisin
98bb29c4ed Fix some clang-analyzer defects 2015-08-28 17:28:09 +02:00
pancake
0eff8ca0d2 Revert "rax2: refactoring, better error handling and update nampage"
This reverts commit 83ca1dab471f59fb6a487301e902badb849701c1.
2015-08-11 09:13:01 +02:00
Grigory Rechistov
83ca1dab47 rax2: refactoring, better error handling and update nampage
change flags from magic numbers to named enum values.
make error reporting more Unix-way by returning non-zero error status
man page is updated to reflect currently supported options
2015-08-11 02:22:21 +02:00
pancake
a793859d5b Fix some COVs 2015-06-01 11:20:53 +02:00
Álvaro Felipe Melchor
75e719362d Fix #2603 2015-05-23 19:10:22 +02:00
dequis
08ff4e493a Always use ut32 for unix timestamps. Also handle endianness properly
Because it turns out sizeof(time_t) is 8 in 64 bit platforms, but that
results in really broken 'pt' results, where half of the lines are
'invalid date'

Also, endianness handling was swapped in the case of 'pt' and
non-existent in the case of 'rax2 -t' (the latter actually did a weird
hack to swap endianness twice and get valid results).

Now rax2 -t supports the -e parameter to swap endianness.

The usage of r_mem_copyendian with r_print now matches what's done
in other places, with !p->big_endian instead of p->big_endian,
because 0 means swap and 1 means do nothing. Terrible function.

This also fixes some valgrind warnings about uninitialized values
(when copying 4 bytes to a 8 byte time_t)
2015-05-01 10:28:23 +02:00
pancake
12ea9734b5 Fix about 15 more random COVs 2015-03-21 02:04:49 +01:00
pancake
4ad5a7a27b Fix more base64 warnings 2015-02-09 23:37:49 +01:00
pancake
48422b07db Fix #1910 2014-12-26 19:42:35 +01:00
pancake
bb3be2c237 Implement rax2 -N for a C friendly version of -n, and support 64bit values 2014-10-28 16:32:53 +01:00
pancake
a2c3647ad0 Somewhat better BoostJam support 2014-10-26 02:47:08 +02:00
pancake
3a9a733ebf Implement rax2 -F (r_stdin_slurp(), r_hex_from_c())
- Update rax2 manpage
2014-10-20 00:46:59 +02:00
pancake
d176cb1d01 Fix rax2 2014-09-26 17:11:10 +02:00
pancake
6d8b9608a7 Add doc for that new rax2 thing 2014-09-22 16:40:08 +02:00
pancake
a095ad7a42 Fix #1356 - rax2 =10 0x89984 or rax2 =16 ... 2014-09-22 16:35:23 +02:00
jvoisin
359846b0d1 Fix some buffer overflow 2014-08-18 14:22:36 +02:00
pancake
c40a4a8e82 Handle negative hex values in rax2 2014-07-13 22:12:29 +02:00
condret
70744a1ad9 support ternary values in rax2 2014-05-28 21:50:13 +02:00
jvoisin
031691f44e Implement rax2 -D and rax2 -E
Plus some re-ordering.
2014-05-22 09:26:17 +02:00
pancake
8e4b7c0f70 Fix #914 rax2 -s/-S (Theodore Quaid patch) 2014-05-13 23:21:54 +02:00
pancake
31619ca208 Add test-rax2.sh script 2014-05-13 17:32:01 +02:00
pancake
a7778a5815 Fix r_num_free memleak 2014-05-06 04:00:26 +02:00
Anton Kochkov
b1f70bc0de Fix CID 1134969 2014-05-02 14:59:52 +04:00
Anton Kochkov
cefa742a25 Fix CID 1134727 2014-04-26 04:16:28 +04:00
pancake
eaccd3bb7a Fix #743 - rax2 -v shows interpreter 2014-03-31 05:46:42 +02:00
pancake
8279f508db Implement /P and Optimize + Fix #412 ROP search 2014-01-27 01:12:16 +01:00
pancake
7f28befc04 Fix static build 2013-12-31 05:40:16 +01:00
pancake
f02b0b2940 Minor refactor in rax2 2013-10-16 23:25:35 +02:00
pancake
92bdbf0c0a Add scr.fgets and fix rax2 -s for emscripten 2013-09-16 04:08:08 +02:00
pancake
c1629360f9 Better rax2.html - See http://rada.re/js/rax2 2013-09-16 02:50:37 +02:00
pancake
18cc767292 More emscripten/android build fixes 2013-09-07 02:20:38 +02:00
pancake
7855f4952f Initial work supporting emscripten compilation 2013-09-07 00:39:08 +02:00
pancake
3ff36c3965 Fix #205 - rax2: fix misuse of read on stdin 2013-09-03 19:29:33 +02:00