146 Commits

Author SHA1 Message Date
satk0
060d976412
Replace other r_return_* uses and update DEVELOPERS.md ##refactor 2024-08-05 13:31:58 +02:00
satk0
ebd8bf9042
Replace r_return_val_if_fail with uppercase alternative 2024-08-05 12:26:32 +02:00
pancake
d2725b7bd0
Improved default function names ##analysis 2024-08-02 13:00:12 +02:00
pancake
a543e966a1 Fix ftw flag tags, broken after the RStr.glob refactoring ##shell 2024-04-04 13:20:26 +02:00
pancake
621ae3f943 Improve JSON output for the afsvj command ##analysis 2023-10-26 12:53:55 +02:00
pancake
e289b59e49 Fix null derefs spotted by "infer" 2023-10-11 19:48:58 +02:00
pancake
f8497307c9 Remove unnecessary call to r_sys_getenv_asbool in the macho parser 2023-09-19 17:20:09 +02:00
pancake
874566e6a7 RFlag.free() must return void ##api 2023-08-17 19:40:02 +02:00
pancake
e0f9638de3 Fix assert in 'fj' when realname is null 2023-07-20 15:32:34 +02:00
Lazula
22d71f931a Remove RList.get_top and RList.get_bottom 2023-03-03 10:14:51 +01:00
pancake
3313fcf7be
Add more critical regions here and there 2022-09-24 23:14:29 +02:00
pancake
16cb83a19c Use more tabs and add a (disabled for now) linter for it ##lint 2022-09-23 22:07:49 +02:00
pancake
9e53795891 Add some RThreadLocks and start to use the critical sections ##threads 2022-09-23 22:07:49 +02:00
pancake
e3c09aa9c6
Build r2 with muon+samu ##ci
* Remove asm.arc leftovers
* Fix r2pm -r return value
2022-07-08 22:44:46 +02:00
pancake
332574aeb5
More eprintf -> RLOG here and there ##refactor 2022-07-05 13:34:13 +02:00
pancake
145607966d Likely optimization to reduce cache misses in RFlag.get() 2022-07-02 23:13:02 +02:00
pancake
90143a716f
Fix #20040 - invalid char bug in afl* when function names contain ';' ##projects
* Rename r_name_filter2() to r_name_filter_dup()
* Abi break as now `r_name_validate_char` is no longer an static inline
* Fixes some project save/load inconsistencies
2022-05-05 02:08:54 +02:00
pancake
c8ae21f68f
Only build library archives when -Dblob is provided ##build
* Lowers the amount of objects from 2400 to 1500
2022-03-22 11:59:13 +01:00
Sergi Àlvarez i Capilla
aef278ee9c Make -Dblob=true statically link all r2 libraries ##build 2022-03-02 11:30:28 +01:00
RHL120
785e500a7e
A better way to check if a project has been saved ##projects
* Add a dirty var to RFlag, RAnal and RConfig
* Add  prj.alwaysprompt
* Add R_DIRTY() and R_IS_DIRTY()
2022-01-25 10:39:15 +01:00
pancake
f2995c2949
Introduce r_strf and stop using sdb_fmt ##util 2022-01-18 18:35:31 +01:00
Lazula
dc21a2e081 Clean up sp->event in r_spaces_fini() 2022-01-11 01:10:00 +01:00
Lazula
ad749a0b1a Fix static/R_API function definition formatting
* Remove spaces before parens
* Remove spaces after asterisks
2021-12-21 20:58:12 +01:00
Lazula
2255bf8b5d Many indentation style fixes
* Change several 8-space indents to tabs
* Apply tab indent style when breaking long lines
* Move operators from EOL to start of next line
* Fix ternary formatting
2021-11-18 10:43:52 +01:00
pancake
64225f30db
New 'avg' command and RAnal.global to manage global variables ##anal
* Tied to the flags and meta instances
2021-10-14 12:40:55 +02:00
pancake
f766597b9c More fixes 2021-08-17 01:09:03 +00:00
pancake
80f861a71d
Implement custom bit size cyclic memory layout and wrap flags in ##io (#18417)
* Repeated maps dont have executable permissions
* This is used on s390, ARMv4 (and lower) and some v850
* Added some basic tests
2021-03-14 16:55:57 +01:00
pancake
0ef6b0c80c
Remove SDB code from flag/zones (#18423) 2021-03-08 02:19:46 +01:00
pancake
aaa930ab26
Improve and formalize r_name_check() along all the base ##core (#18020) 2020-12-16 14:49:50 +01:00
Lazula
243bc871c3 Multiple refactors in io and util ##io ##util ##refactor
* Add r_io_map macros throughout code base
* Update string NULL-checking with renamed functions r_str_get() and r_str_getf()
* Change string NULL-checks throughout code base to use functions
* Add r_str_get_fail() to specify a custom string to return if NULL-check fails
* Mark JSON to be updated with PJ with "TODO PJ"
* Incidental style updates such as missing spaces
2020-12-13 05:09:13 +01:00
pancake
e356715589
drr show all flags and pxrj is now structured ##print (#17758)
* dxrj changed the field `ref` to `refstr`
2020-12-06 18:31:43 +01:00
Anton Kochkov
aaccc09828 Variadic argument fixes 2020-11-10 11:11:45 +08:00
Khairul Azhar Kasmiran
d9057505dc
Set RPATH/RUNPATH on r2 libs too if local (#17639) 2020-09-15 09:16:14 +02:00
Riccardo Schirone
594b940b7c
Fixes some of the issues in Travis (#17267)
* Do not check with r_return_ if the convention is present

Let's just assume the NULL default in such a case, so that architectures
for which we don't have a defined calling convention can still be
processed somehow by the analysis code. It won't be precise, but it's
better than nothing.

Also add a warning message so users are aware when the calling
convention is not defined.

* Fix oob-read when # is at the end of the cmd string

* Do not set TMPDIR when the new value is the empty string

When TMPDIR is set to empty value, clang+ld behaves in weird ways and
you cannot compile files from within the r2 shell (e.g. when using #!c
or #!cpipe)

* Use meson and add -lasan to pkgconfig files when sanitizer are used
2020-07-16 20:47:30 +08:00
pancake
160fc95e66
Use (void) instead of () in function signatures (#17026) ##refactoring
* Use (void) instead of () in function signatures
* Add test to avoid further contributions to commit the same mistake
2020-06-14 16:08:32 +02:00
Anton Kochkov
ffe743ef39
Fix #4056 - rename DEPS to R2DEPS ##build (#17020)
* Rename DEPS to R2DEPS
* Cleanup of sys/build.sh
2020-06-12 10:49:28 +08:00
pancake
75ee57bfb0
Update SDB with boolified SdbForeachCallback (#17040) 2020-06-11 11:25:23 +02:00
Francesco Tamagni
78b6cdeaaf Expose flag_get_list to RFlagBind 2020-05-03 17:55:20 +02:00
radare
72093ac706
Fix #16138 - Do not preincrement when it's not necessary (#16151) 2020-03-05 19:06:59 +01:00
Florian Märkl
1dddfd83d4
Fix Spaces Interference in r_flag_get_at() (#16019) 2020-02-22 21:32:30 +01:00
Khairul Kasmiran
78e21373be Revert "ONE_STREAM_HACK & scr.onestream: Force expected ONE_STREAM order if necessary (#15535)"
This reverts commit 39b40cdedd48ac0745a0a5f2df379132ee1005ef.
2020-02-17 00:00:46 +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
Florian Märkl
09245579e3 Fix Leak of Flag Zones (#15432) 2019-11-07 21:36:36 +01:00
Florian Märkl
9ff090b9b8 Refactor r_flag_color() to r_flag_item_set_color() (#15429) 2019-11-07 12:46:08 +01:00
radare
e0e593c94c
Show flagname and realname in json format for fnj and such ##json 2019-10-28 16:46:14 +01:00
Florian Märkl
aad2a2c79e Link sdb fully into r_util in meson (#15338) ##build 2019-10-23 15:52:19 +02:00
dav1901
a88d3303e1 Minor code fixes (#15276) 2019-10-15 02:54:35 +02:00
pancake
631db86543 Fix minor warnings and update sdb from git 2019-09-11 00:18:07 +02:00
pancake
a228c9297b Implement 'cols' RTable.query to filter by column names ##print
* r_str_split_list() rewritten to support nth limit

r2 -qq -c 'aac;aflt size/gt/200,addr/cols/name/nbbs,nbbs/sort/inc' /bin/ls
2019-08-28 23:25:31 +02:00
dodococo
84a326c674 Fixes #14672: f= gives output from current flagspace (#14820) 2019-08-17 22:44:20 +08:00