Commit Graph

96 Commits

Author SHA1 Message Date
pancake
7c14bac05b
Add initial support for building r2 on WASI ##build 2021-06-20 17:14:43 +02:00
pancake
9242bc2328 Fix #18699 - fix search hit dumps outside the current block in rafind2 2021-05-16 20:23:57 +02:00
Khairul Azhar Kasmiran
d9057505dc
Set RPATH/RUNPATH on r2 libs too if local (#17639) 2020-09-15 09:16:14 +02:00
pancake
72d1021462
Fix #14371 - Make wfs paired with wts, rename wfs to wfx ##io (#16470) 2020-04-08 14:13:12 +02:00
Khairul Azhar Kasmiran
18ef593b2e Set rpath if non-Windows Meson shared ##build (#15051) 2019-09-22 10:49:54 +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
Vasilij Schneidermann
e39c9424aa Make -x behave like /x unless mask is provided ##search 2019-03-05 20:28:31 +01:00
Khairul Azhar Kasmiran
01d5dfe306 Fix rafind2 -S for UTF8 chars > U+00ff (#12866)
* Fix rafind2 -S for UTF8 chars > U+00ff

* Use '< 1' instead of '== 0'

* Remove unnecessary else

* Add a 0
2019-01-22 09:43:10 +01:00
Maijin
8f94d413cd Standardize version using blob_version ##refactor 2019-01-12 22:22:43 +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
pancake
2142a8a992 Fix build 2018-10-15 20:48:24 +02:00
pancake
de525b09d8 Add missing r_hash dependency for rafind2 2018-10-15 20:47:41 +02:00
Riccardo Schirone
6c462b3ecc rafind2: avoid memleaks (#11817) 2018-10-15 16:18:51 +02:00
pancake
41ec949204 Fix #11112 - Rename {srwx,flags,perms} to perm. (-21 LOC)
Unify R_IO, R_BIN, R_BP, .. into R_PERM_* using 1 letter syntax
2018-09-22 11:31:45 +02:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
Maijin
6eda76e0f8
Fix #1361 (#10889) 2018-08-01 22:27:19 +02: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
Tomasz Gorochowik
3c15e4348d rafind2: print heading (filename) before matches
The headings are enabled by default when searching multiple files or a
directory.

The headings can be disabled with the quiet mode (-q).
2018-06-30 19:37:52 +02:00
Tomasz Gorochowik
e17cc1c6ae Implement rafind2 recursive search ability 2018-06-30 19:37:52 +02:00
sivaramaaa
505bb8fdaf Fix #9883, Handle hit in search left over (#9890) 2018-04-15 14:25:27 +02:00
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +01:00
Fangrui Song
d190effb26 Remove search.count in favor of search.maxhits in /A , /R , and everywhere (#8538) 2017-09-18 02:04:01 +02:00
Fangrui Song
4358de43b2 Fix backward search and string search across boundary in search.overlap=0 mode and fix mem leak (#8537)
* Fix mem leaks in search
* Fix backward search and string search across boundary in search.overlap=0 mode and fix mem leak
2017-09-17 23:44:04 +02:00
xarkes
c118091c42 Fix #8486 (meson missing bins) (#8519) 2017-09-15 10:17:50 +02:00
pancake
29ca827cf2 Fix Android builds 2017-08-19 18:52:57 +02:00
alvarofe
2e462ec8f0 Bring RIODesc from SIOL and cleanup 2017-08-18 01:31:57 +00:00
Fangrui Song
d1cde39852 Fix help messages (#8136) 2017-08-07 12:19:15 +02:00
pancake
78ec2d0340 Implement rafind2 -i to identify binaries 2017-08-01 15:27:11 +02:00
Fangrui Song
eec5aff085 Add Zsh completion file doc/zsh/{_r2,_radiff2,_rafind2,_rahash2,_rasm2,_rax2} (#7929)
* and minor fixes in the r2 help message
2017-07-16 10:08:48 +02:00
Marc
80d4b44b2e Fix random code style issues 2017-07-13 00:46:27 +02:00
Roi Martin
c2609ad44b Fix r_print_hexdump ref in rafind2 2017-06-06 10:45:01 +02:00
pancake
60f9667654 Remove support for bjam build system
- Delete all Jamroot files
2017-05-02 05:48:40 +02:00
pancake
01477c74f0 More coverities fixed 2017-04-05 10:59:37 +02:00
pancake
d41b577106 Fix #5924 - r_flags -> r_flag 2016-10-27 01:07:58 +02:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
pancake
53e9e91b4c Increase rafind2 -ZS wide and do not run aad in aaa 2016-08-05 00:30:56 +02:00
pancake
d179c06af3 Support wide strings in rafind2 -ZS 2016-08-03 01:17:27 +02:00
pancake
f96f00d62d Fix #5158 - Merge r_db into r_util 2016-06-17 12:19:16 +02:00
Sven Steinbauer
eef32d0260 First few fixes for infer scans
Fixes a few memleaks and several NULL dereferences

Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-23 11:25:44 +02:00
pancake
3758b3a54a Fix static/android build 2016-04-25 12:40:01 +02:00
pancake
f1f83276ea Fix static build with libbochs 2016-03-25 10:13:50 +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
ca7f55be5a All those bins depend on r_lang 2016-01-30 21:19:36 +01:00
pancake
5132a499c2 Fix many coverities 2015-12-31 17:10:02 +01:00
pancake
b728b48123 Native tvOS/WatchOS support, non-fat libr.a and mach0 identification for them 2015-12-28 20:40:18 +01:00
pancake
ccfee9fcca Fix many important issues reported by clang-analyzer 2015-11-22 11:27:45 +01:00
jvoisin
1d485ea927 coverifix 2015-10-19 23:31:36 +02:00