Commit Graph

176 Commits

Author SHA1 Message Date
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