Commit Graph

138 Commits

Author SHA1 Message Date
Khairul Azhar Kasmiran
d9057505dc
Set RPATH/RUNPATH on r2 libs too if local (#17639) 2020-09-15 09:16:14 +02:00
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
Khairul Azhar Kasmiran
18ef593b2e Set rpath if non-Windows Meson shared ##build (#15051) 2019-09-22 10:49:54 +02:00
radare
c93c094c40
Fix android-static ##build 2019-08-01 04:39:40 +02:00
pancake
dce703d88b Fix static linking 2019-04-02 16:02:31 +02: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
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