Commit Graph

234 Commits

Author SHA1 Message Date
GustavoLCR
e43c9e7caf Fix some warnings (#15549) 2019-12-08 12:49:58 +01:00
Khairul Azhar Kasmiran
39b40cdedd
ONE_STREAM_HACK & scr.onestream: Force expected ONE_STREAM order if necessary (#15535) 2019-12-02 23:09:38 +08:00
Sylvain Pelissier
21de29a82f Update RSA key search to find larger keys (#15494) ##search 2019-11-24 17:13:51 +01:00
Sylvain Pelissier
15046fa2e6 Search for AES 128, 192 and 256-bit keys (#15426) ##search 2019-11-08 10:27:23 +01:00
GustavoLCR
2e61459499 Fix #14202 - Add support to '\d', '\w', etc. in regex ##search 2019-08-19 00:16:38 +02:00
Anton Kochkov
20e19d6023 More spelling fixes in the code 2019-06-20 13:36:02 +08:00
radare
e04f31a313
Completely kill the msvc/ directory and the unix-specific includes workarounds 2019-03-19 17:34:02 +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
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
lzutao
1365948cee Do not use reversed keyword of meson ##build
`files` is a reversed keyword in meson. Try to avoid using it.
2019-01-10 14:15:50 +01:00
lzutao
9cc6d2d291 meson: Do not use glob with meson ##build
* meson: Explicit is better than implicit
* meson: Fix deprecated warnings in Meson 0.49.0
* meson: Do not need separate array for installed files

libr/socket/meson.build:30: DEPRECATION: Library r_socket was passed to
the "libraries" keyword argument of a previous call to generate() method
instead of first positional argument. Adding r_socket to "Requires" field,
but this is a deprecated behaviour that will change in a future version
of Meson. Please report the issue if this warning cannot be avoided in
your case.
2018-12-27 14:17:54 +01:00
dav1901
5b644dcb74 Minor cleanups/fixes (#12478) 2018-12-14 00:17:50 +01:00
dav1901
c1f30de193 Minor code cleanups free/R_FREE (#12157) 2018-11-14 21:23:20 +01:00
pancake
9556ebb1f9 More warning issues 2018-11-14 13:47:43 +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
Stefan Ilic
17dd57b8c1 Fix leak in search (#11754) 2018-10-07 00:29:11 +02:00
radare
c6a58a04cc
Fix #11616 - Remove the use of RMemPool and update some comments for future discussion (#11665) 2018-09-26 11:31:24 -07:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
fcasal
d6aa6e94a3 Fixes one crash of #11407 (#11443) 2018-09-08 12:08:48 +02:00
Riccardo Schirone
eee1385466
Meson private (#11331)
* meson: refactor library cflags
* meson: use visibility=hidden by default
* remove unused var
* magic/meson: replace tabs with spaces
2018-09-03 10:07:28 +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
pancake
91a2e5fb9d More killing of strcasecmp/strncasecmp 2018-05-21 22:13:07 +02:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
Paul I
40b4a5b557 Meson: disable libversion info for Windows (#9858) 2018-04-10 22:44:54 +02:00
Paul I
ca3652da4b Meson: Add version info for shared libs (#9763) 2018-03-24 18:18:32 +01:00
Paul I
4e73ad7d19 Meson: some cleanup (#9753) 2018-03-23 07:47:46 +01:00
Florian Märkl
5e1f811ec0 Fix meson indentation (#9567) 2018-03-03 22:08:37 +01:00
Florian Märkl
95a1b75784 Install Headers and .pc Files with Meson (#9548)
Use meson pkgconfig for .pc files

meson 0.44

Install same headers as acr
2018-03-03 20:00:18 +08:00
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +01:00
Giovanni
ac9ec50b57 [COV] 1381331 Uninitialized pointer read (#9291) 2018-02-02 14:57:04 +01:00
Fangrui Song
c43e6880fb Refactor search (#8566)
* fix out-of-bounds read in r_search_strings_update
* Remove static variables searchhits maplist maxhits first_hit in cmd_search.c
* Change semantics of r_search_hit_new (update kw->count s->nhits in it), return 2 if search.maxhits is reached and stop searching immediately
* honor search.maxhits in r_search_regexp_update
* Refactor _cb_hit, remove bckwrds/do_bckwrd_srch and static cmdhit
* Fix mem leak in regexp.c
* Add support for /d (delta) /bd (backward + delta) when crossing blocksize boundaries
2017-09-20 17:00:18 +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
Fangrui Song
813e415a1c Fix #8189 - refactor search.c (#8195)
* fix r_search_mybinparse_update when locating `a+a+b` in `a+a+a+b` where len(a) > 1, e.g. locating `ababc` in `abababc`
* fix /d (r_search_deltakey_update) with same issue
* fix search.distance
* fix binmask
* swap the order of the nested loop
* add RSearch::maxhits . More work later
* add RSearch::data for data used by matching algorithm

before:
  for (i = 0; i < len; i++)
    r_list_foreach (s->kws, iter, kw)

after:
  r_list_foreach (s->kws, iter, kw)
    for (i = 0; i < len; i++)

rationale:
  + searching for more than one needles is rare. the branches used in inner loop harms performance
  + it's cumbersome to bookkeep for each `kw` in advanced searching algorithms
2017-09-13 11:48:59 +02:00
alvarofe
233574cf8e Set io.va to false if binobj says so 2017-08-28 21:22:46 +02:00
alvarofe
2e462ec8f0 Bring RIODesc from SIOL and cleanup 2017-08-18 01:31:57 +00:00
SkUaTeR
c31d81da26 support for static build (#7822)
* support for static build
* improved sharard/static build
2017-06-28 22:54:40 +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
SkUaTeR
beb80cfc16 Fixes for MSVC 2017-05-09 23:53:20 +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
pancake
5433af7cb0 Fix build and several queues covs from previous analysis 2017-04-26 12:47:27 +02:00
Álvaro Felipe Melchor
13c91127af Fix minor issues by clang-analyzer (#7303) 2017-04-18 14:03:42 +02:00
Roi Martin
8d5b1b5418 Fix build 2017-03-13 14:24:53 +01:00
Roi Martin
e97444c3f0 Create flags in z/ . Revert changes in keyword.c 2017-03-13 11:38:23 +01:00
Roi Martin
488b688636 Implement zign search using r_search. Minor fixes
Note: Current implementation must be refactored and moved to r_sign.
2017-03-13 11:38:23 +01:00
Álvaro Felipe Melchor
224b3c3319 fix some coverities 2016-12-18 23:41:55 +01:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
Maijin
13ed2131ee Cleanup TODOs [ci skip] 2016-09-19 00:02:10 +02:00
pancake
d179c06af3 Support wide strings in rafind2 -ZS 2016-08-03 01:17:27 +02:00
Maijin
7938640445 Move all /t/ from r2 to r2r 2016-07-27 19:19:30 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
Roi Martin
ff24d2921c Fix #4205: hex search + binmask + small bs (#4970) 2016-05-23 00:07:25 +02:00
pancake
1a89cac78f Initial support for search.overlap 2016-02-12 11:37:48 -06:00
pancake
dd08af0158 Remove unused code 2016-01-14 14:58:02 +01:00
pancake
a57ec36895 Fix #3622 - search hits on repeated patterns 2015-11-03 11:04:21 +01:00
pancake
1bdd7c591a Fix #2474 - Implement rafind2 -m for magic search 2015-10-19 03:56:59 +02:00
pancake
38b2db2dfb Fix #3479 - (again) search hit issue 2015-10-18 23:01:32 +02:00
pancake
ef30bba14a Fix #3479 - Search fails in some situations 2015-10-18 18:31:28 +02:00
pancake
782b45a947 Do not stop search on unaligned hits 2015-10-14 02:20:47 +02:00
pancake
f7905cdd1b Fix memleak in ood and better ppc-esil 2015-09-17 01:25:00 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
pancake
d472d73fb7 Fix #3245 - rafind2 -x 2015-09-07 19:16:24 +02:00
pancake
f182a726df Fix search hit between blocks bug. Needs rework 2015-06-03 12:16:50 +02:00
pancake
465f35b2b2 Fix #2541 - Fix search with binary mask 2015-05-26 11:37:05 +02:00
pancake
a417b571fb Fix all search tests 2015-05-26 01:41:46 +02:00
pancake
0ab39f5c22 Add help for /x? and fix hexpair parsing with binmask 2015-05-07 00:46:41 +02:00
Nick Stephens
4f15eea06d Fix #1945 - Add wide string search to rafind2
Fix styling issues in r_search_keyword_new_wide
2015-02-04 03:28:28 +01:00
jvoisin
ce9ece1177 Coverifix++ 2015-01-16 00:56:54 +01:00
Jeffrey Crowell
ed1aae7fd1 fix lots of spelling
fix some errors from the sed script

undo file mode crap
2014-12-07 17:00:59 +01:00
Kamil Rytarowski
aadbd0f868 Fix GCC warnings: array subscript has type 'char'
Reported at NetBSD-current/amd64
GCC 4.8.4 (nb1 20141012)
2014-12-04 03:26:08 +00:00
trndr
56ce7b216c Fix regex search 2014-11-26 10:25:56 +01:00
NighterMan
82b0626fb0 Fix for crash when using regexp searches
Since commit baf3145598 buffers for
bin_keyword and bin_keymask at RSearchKeyword structure need to be
allocated dynamilly. The allocation was missing causing a crash.

Added check to avoid empty regexp filters
2014-10-13 16:26:52 +02:00
pancake
baf3145598 Use dynamically allocated buffers for RSearchKeywords 2014-09-30 12:04:02 +02:00
Anton Kochkov
aaed83a9f7 Proper printf formatting fix for mingw32 2014-08-31 20:19:43 +04:00
Anton Kochkov
ebe5d29307 Fix format string warning on Windows/Mingw32 2014-08-19 16:13:07 +04:00
jvoisin
a4182641b9 Fix more coverity issues 2014-07-28 18:18:01 +02:00
jvoisin
3f7ce70081 Fix CID 1224289 2014-07-01 11:15:59 +02:00
jvoisin
2ddb3c90e9 Refactor (once again) rsa-find. 2014-06-28 15:16:35 +02:00
pancake
377b5bb2fe Clean a huge list of warnings 2014-06-25 02:07:38 +02:00
Anton Kochkov
9b181d7f6f Fix CID 1223474 2014-06-24 01:05:59 +04:00
jvoisin
d55550550a Refactor a little bit rsa-find.c 2014-06-22 13:58:56 +02:00
jvoisin
061184084b Add /Ar, to search for RSA keys 2014-06-22 01:41:57 +02:00
LemonBoy
ad862e068f scan the whole block 2014-06-05 03:31:01 +02:00
pancake
0c33cd4ffa Bring back the good old search loop 2014-06-05 02:55:45 +02:00
LemonBoy
604e68cf99 simple regexp loop 2014-06-05 01:33:21 +02:00
LemonBoy
b7f73620d1 fix the regexp engine 2014-06-05 00:00:33 +02:00
pancake
84e1bc6eb5 Some fixes for the latest rsearch changes 2014-06-04 22:18:02 +02:00
LemonBoy
9a9c5e750a simplify the search engine 2014-06-04 20:03:06 +02:00
pancake
7bbca3c2bf Add and implement search.contiguous config var 2014-05-31 13:44:52 +02:00
pancake
45c41d4582 Handle 'mov' color in RCons.pal 2014-05-16 04:07:03 +02:00
pancake
583be01f32 Handle ^C in /p 2014-05-14 23:24:46 +02:00
pancake
aa1e7c22fc Fix #906 - Error in nibble search 2014-05-09 10:50:57 +02:00
fr33tux
3d801f90ff Remove r_list_destroy, replaced it by r_list_purge 2014-05-03 01:27:10 +02:00
jvoisin
205f27f2f6 Fix CID 1134916 2014-04-30 22:48:42 +02:00
Anton Kochkov
16bac23901 Fix CID 1194800 2014-04-29 06:08:38 +04:00
pancake
a0d3af60ec Fix core.yara plugin 2014-04-27 00:58:31 +02:00
jvoisin
29dfad4f0c Add yara support 2014-04-26 04:45:57 +02:00
Anton Kochkov
c551f3d2e5 Fix CID 1134724 2014-04-26 01:53:24 +04:00
pancake
239f32d309 Fix #765 - list all signal numbers and names 2014-04-05 14:16:08 +02:00