133 Commits

Author SHA1 Message Date
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
Paul I
57acddc1d6 Fixx oobread in flag.c (#14728) 2019-08-01 04:38:08 +02:00
radare
22042a68e0
Improve af performance affected by aflc ##anal 2019-05-28 00:29:35 +02:00
Riccardo Schirone
fd5b0575b2 Apparently pfx can be NULL (#14066) 2019-05-14 13:08:53 +02:00
radare
a653672d67
Minor code cleanup in flags and bin (#14000) 2019-05-08 15:17:15 +02:00
Riccardo Schirone
8cd9851c98 Call remove_offsetmap only if the flagItem is not new ##flags
* Call remove_offsetmap only if the flagItem is not new

It does not have sense to call that function on new FlagItems, it just
slows down things for nothing, since item->offset has not been set yet.

* force and is_new must be two separate things

When setting a flag (which may be even a set of some properties of an
existing flagitem) we want to force the update of all the RFlag
properties, but remove_offsetmap should not be called when the flagitem
is new. So we need to track the two properties separately.
2019-05-08 14:11:34 +02:00
pancake
5114c1f47a Fix #13823 - Implement ftj and ft* commands ##core 2019-04-23 03:27:58 +02:00
radare
aaf93c20d5
More improvements in the current flagtags and ftl->ftw ##flags 2019-04-19 16:54:53 +02:00
pancake
955e9b530f Add missing entry in the flag/d/meson 2019-04-19 14:27:38 +02:00
pancake
013fa94c7b Implement ftl and add more flag tags ##flags 2019-04-19 14:19:19 +02:00
radare
365a534505
Fixes for flagzones and scr.scrollbar ##visual (#13698)
* scr.scrollbar (0=no,1=right,2=top,3=bottom)
2019-04-11 06:48:22 +02:00
dogtopus
51824a255b Make flag comments base64-compatible ##core 2019-04-01 01:02:56 +02:00
radare
674504a90c
Fix #13333 - Show flag zones in scr.scrollbar ##visual 2019-03-29 16:10:59 +01:00
a1ext
4000e7bf72 Fix ft command crash on Windows (#13457) 2019-03-22 04:10:00 +01:00