Commit Graph

161 Commits

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