Commit Graph

124 Commits

Author SHA1 Message Date
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
Riccardo Schirone
7572f315ea
meson improvements (#10617)
* meson.build: fix meson build when not on git
* meson.build: make capstone a dependency
* meson.build: make r_magic library optional
* meson.build: capstone include is already in the dependency
* meson.build: use dependencies instead of manual linking + includes
* meson.build: add travis
* flag/meson.build: include sdb dependency
* travis-script: print messages based on install system
* io/meson.build: add sdb as dependency
* syscall/meson.build: missing sdb dependency
* {parse,config}/meson.build: add sdb dependency
* travis.yml: pass INSTALL_SYSTEM var to docker
* {bin/shlr}/meson.build: add sdb_dep to r2java and bin
* install meson and ninja-build in r2-travis docker
* travis.yml: allow meson build to fail for now
* anal/meson.build: add sdb and java dependencies
* egg/meson.build: add sdb dependency
* travis.yml: meson build env should be also in the includes list
* core/meson.build: add java dep
* meson.build: use dependencies also to create main r2 dependency
* rasm2/meson.build: replace link_with with dependencies
* rasm2/meson.build: add sdb as dependency
* meson.builds: convert link_with to dependencies and fix tabs
* travis-script: change meson install prefix and set PKG_CONFIG_PATH
* travis-script: add lib64 to LD_LIBRARY_PATH
2018-07-09 16:58:38 +02: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
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +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 23a4721ef8.

* 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
SkUaTeR
dc7914644e Meson improvements 2017-05-31 13:38:47 +02:00
SkUaTeR
9a1337512a meson.build fixes to build with MSVC 2017-05-14 23:06:00 +02:00
pancake
60f9667654 Remove support for bjam build system
- Delete all Jamroot files
2017-05-02 05:48:40 +02:00
pancake
fa671b9a16 Initial support for the Meson build system
- Integrated with current ACR
- Fix some stale fails got removed
2017-05-02 05:05:36 +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
7cecadb74a Removing useless files/doc 2016-07-28 07:59:10 +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
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