Commit Graph

159 Commits

Author SHA1 Message Date
Khairul Azhar Kasmiran
2b7bf5bee2
Treat empty string as false when boolifying (#15859)
* Treat empty string as false when boolifying

* Fix :, in ej output
2020-01-21 21:01:06 +08:00
Riccardo Schirone
d8f2b4a4db Do not try to convert to true/false, as it breaks integer vars
See discussion at https://github.com/radareorg/radare2/pull/15681 .
Unfortunately the change cannot be done for non-int vars only, because
right now vars are not statically typed, so a var that is initially
CN_INT can then become CN_STR if you set a string.

Changing vars to assign them a static type when they are created would
require a much bigger change and discussion.
2020-01-17 12:22:44 +01:00
Riccardo Schirone
8a330bedb0 A bit of refactoring in r_config.h 2020-01-17 12:22:44 +01:00
Khairul Azhar Kasmiran
eb7b4b756b When setting non-bool config var, set false/true if r_str_is_false()/_is_true() (#15681)
* When setting non-bool config var, set false/true if r_str_is_false()/_is_true()

* Fix for cmd_open tests

* Fix for cmd_print test
2019-12-20 21:12:54 -06:00
Riccardo Schirone
fd1f980eca Pass R2_CONFIG file to ! commands and serialize methods ##config 2019-12-16 23:23:17 +01:00
Anton Kochkov
e11b2a9145
Some Coverity defect fixes (#15626) 2019-12-13 11:25:19 -06:00
Florian Märkl
2a1250c041 Remove unnecessary RConfig Members (#15509) 2019-11-27 11:42:15 +01:00
Florian Märkl
aad2a2c79e Link sdb fully into r_util in meson (#15338) ##build 2019-10-23 15:52:19 +02:00
Paul I
c5aa976847 Remove needless strdup() calls in r_config_set_i() (#15313) 2019-10-19 13:15:30 +02:00
Remco Verhoef
f24f3b31db fix typo (#15225) 2019-10-08 10:54:38 +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
pancake
3a235b49c2 Visual panels layout save/load via 'v' command ##panels 2019-08-10 14:33:08 +02:00
karliss
a04f863db8 Fix some leaks found by ASAN 2019-07-28 19:08:24 +02:00
pancake
9b7dcd30a9 Simplify RConfig.eval and improve e with e, for csv ##core 2019-06-20 10:30:52 +02:00
radare
a49bb7cf66
Change the signature of r_str_trim to avoid confusions ##refactor 2019-06-16 20:58:40 +02:00
pancake
1d33705cc0 Code cleanup in RConfig and bring back 'e asm.' for listing ##config 2019-05-05 23:18:53 +02:00
radare
d90a2f5c1f
Fix uaf in config hold (#13591) 2019-04-01 00:19:40 +02:00
pancake
38a0343e62 Implement visual decompiler and fix the RConfigHold API ##disasm 2019-03-04 02:44:13 +01:00
Florian Märkl
f80a47ab60 Move Palette to RConsContext to make RCoreTask less racy ##cons 2019-01-18 11:58:49 +01:00
GustavoLCR
89914ace5f Fix #12773 - Support setting multiple configs at the same time ##core 2019-01-15 19:54:25 +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
Riccardo Schirone
4b7f8313e1 Fix some COVs (#12255) 2018-11-21 17:53:20 +01:00
Riccardo Schirone
f77ecfb357 Upgrade SDB and use the new HtPP, HtUP, HtUU ##refactoring
* sdb-sync: update to commit ea05ca8808605daa683a2b35f143e24c3a70f0c9
2018-11-14 10:47:28 +01:00
Riccardo Schirone
c09ba158fe
sync sdb and adapt r2 codebase (#11953)
add improvements of SdbHt from sdb
2018-10-26 15:54:32 +02:00
radare
945e9566fb
Fix #11455 - Implement internal less pager with scr.pager=.. (#11548)
* Use full screen in r_cons_less (last line was not used before)
2018-09-17 12:15:12 +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
95d346b611 Fix #10674 - pzq and gcc build 2018-07-09 01:13:29 +02:00
pancake
b63e146300 Fix ft help message and install flag tags file 2018-05-27 15:55:33 +02:00
pancake
91a2e5fb9d More killing of strcasecmp/strncasecmp 2018-05-21 22:13:07 +02:00
pancake
be89180e7b Cleaning up asn1 apis, standarize IS_* apis and some more cleanup 2018-05-21 22:13:07 +02:00
Paul I
7e9f982849 Meson: some cleanup (#10076) 2018-05-16 10:24:35 +02:00
pancake
99e45f6f54 Fix last covs 2018-05-02 14:49:57 +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
radare
a30a11e2ef
More booleans (yes, no, on, off) and case-insensitive 2018-04-14 10:46:08 +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
pancake
1d81e15424 Introduce graph.dummy to disable the creation of dummy nodes in the graph
- If disabled layout is worst, but 't' and 'f' work because there
  are no dummy nodes to follow_nth()
2018-03-06 23:28:19 +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
Giuseppe
8336816d9c Add alternative and colored view for varsum (#9306)
This should _not_ break .radare2rc's that
use a boolean for `asm.varsum`.
2018-02-06 13:13:55 +01:00
pancake
e43107d1ca r_str_chop_ro, r_str_trim_const -> r_str_trim_ro 2018-01-08 03:29:29 +01:00
pancake
335938be58 r_str_chop -> r_str_trim 2018-01-08 03:22:26 +01:00
pancake
3f64b7a1dc Initial implementation of the r2 filesystem 2017-10-23 03:48:48 +02:00
pancake
3379258f87 Implement the 'es' command to list eval spaces and keys 2017-10-23 03:18:07 +02:00
SkUaTeR
c31d81da26 support for static build (#7822)
* support for static build
* improved sharard/static build
2017-06-28 22:54:40 +02:00
pancake
f85bc674b2 Fix #7698 - UAF in r_config_set when loading a dex 2017-06-07 23:51:13 +02:00
SkUaTeR
dc7914644e Meson improvements 2017-05-31 13:38:47 +02:00