Commit Graph

3467 Commits

Author SHA1 Message Date
pancake
5be2409891 Remove another unnecessary r2580 comment and add R_TYPE_INVALID 2022-10-27 17:13:16 +02:00
pancake
0b90768931 Rename RStr.home() to RFile.home() as part of the Plan ##api 2022-10-27 16:28:33 +02:00
pancake
693ba7072f Remove incorrect comment 2022-10-27 16:19:24 +02:00
pancake
8f2f1e38bb Rename r_mem_memzero to r_mem_zero ##api 2022-10-27 14:49:19 +02:00
pancake
79e2d9e2cc Initial abi breaking changes in RCrypto/RHash ##crypto 2022-10-27 14:49:19 +02:00
pancake
a2cceaaf04 Add pFpj command to print PKCS7 files as JSON ##print 2022-10-27 12:25:56 +02:00
pancake
84777d65f4 Move rvc from core to util ##rvc 2022-10-27 12:10:41 +02:00
pancake
b8aff944ec Implement the ji: command as an alternative to ~{} without cons filtering ##shell 2022-10-27 10:44:29 +02:00
pancake
7cef8e9dec Fix unref issue when calling RCore.free from multiple threads 2022-10-25 22:31:59 +02:00
pancake
c266c9e1c4 Minor comment/string colorization improvement in pdc output 2022-10-25 13:35:45 +02:00
pancake
9a4fe919c6
Prefer _tostring() instead of _to_string() ##api 2022-10-24 20:59:18 +02:00
pancake
0d3618414a Fix few windows warnings 2022-10-24 17:55:34 +02:00
pancake
41a2bd2424
Add colorization support to pdc output ##decompiler 2022-10-24 16:16:54 +02:00
condret
6fd27ce229 Stop aeg from abusing agg ##refactor 2022-10-20 07:56:57 +02:00
pancake
a64c6730c9 Fix more memory leaks in rbin and ranal for arm64 ##leaks
* Fix memleak spotted by coverity
2022-10-19 00:35:44 +02:00
pancake
8dcffdb67e Fix symstall-includes 2022-10-17 01:14:56 +02:00
pancake
36a63c3400 RAnalOp.srcs,dsts are not pointers ##abi 2022-10-17 01:14:56 +02:00
pancake
a06ade1796
Balance spacings in braces ##indent 2022-10-13 21:21:34 +02:00
pancake
c42acae208 Fix clean installations with r2pm -c ##r2pm 2022-10-13 14:42:55 +02:00
pancake
318c34feb2 Add back the pFo command and add a test for pFBj 2022-10-13 14:42:55 +02:00
pancake
62fdc0f0ff
shlr/yxml -> libr/util/rxml - fork the abandoned yxml parser and expose it ##util 2022-10-10 12:33:43 +02:00
pancake
b757488cf8 More linting rules 2022-10-09 01:04:13 +02:00
pancake
ba2abf29f0 Implement new 'pcq' command, like pc, but inline-include-friendly ##print 2022-10-09 00:04:25 +02:00
pancake
18cdcd3808 Redirect RLog messages into the Corelog ##logs 2022-10-06 23:34:27 +02:00
pancake
0c0effcd1b RStr.wrap() supports ansi and use it in VT ##visual 2022-10-06 22:05:46 +02:00
pancake
ccd79d9e36 Add a dummy bpf pseudo plugin ##disasm
* rename Parse.justify() to Str.fixSpaces()
* Fixes portability of testsuite
2022-10-06 20:32:30 +02:00
pancake
2e61d2b4f4 Add RStr.ansiStrip() and RStr.insert() ##util 2022-10-05 22:12:52 +02:00
pancake
c0b50cb084 Improve internal RBuffer API checks ##util 2022-10-04 15:53:05 +02:00
Dennis Goodlett
25f4f51384 Add log error when pj depth limit reached ##util 2022-10-03 23:21:46 +02:00
condret
799b1939d9 Avoid using RArchConfig->big_endian ##refactor 2022-10-03 09:17:33 +02:00
pancake
c2851a6f46 Use XDG instead of R2_HOME_CACHEDIR and R2_HOME_HISTORY ##core
* Implement and use the new `r_xdg` apis
* Remove R2_HOME_RC, R2_HOME_RC_DIR and R2_HOME_CONFIGDIR
* R2_HOME_THEMES, R2_HOME_ZIGNS R2_HOME_PDB R2_HOME_HUD R2_HOME_BINRC and R2_HOME_BIN
* Disable the bin-specific user scripts
* Massage the help messages and reduce and review all the env vars used
2022-09-29 17:33:21 +02:00
pancake
adb7c1388a Initial support for XDG env vars and paths ##core 2022-09-29 17:33:21 +02:00
pancake
430d6e2310 Fix last covs 2022-09-26 18:23:07 +02:00
pancake
aea2abf241 Fix read buffer overflow in pxq -272 ##print 2022-09-25 20:36:42 +02:00
pancake
95eff67851
Enable the leading spaces linter rule and fix them all ##lint 2022-09-24 03:43:21 +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
condret
bd50eeef38 Add R_LIB_TYPE_ARCH and i4004 arch-plugin ##arch 2022-09-23 04:38:35 +02:00
condret
220dbb9a13 Introduce R_SYS_BITS_4 ##util 2022-09-23 01:47:03 +02:00
pancake
d0e9c2b088 Implement pFbJ command with quiet and verbose json formats ##print 2022-09-22 00:45:49 +02:00
pancake
43f700fc68 Implemen pFbj for json printing of protobuf ##print 2022-09-21 23:19:59 +02:00
pancake
29ee360f3d Update r2pm manpage and add -q and -a flags ##r2pm 2022-09-21 20:54:08 +02:00
pancake
53c0af0b8a Show package source with r2pm -d <pkgname> ##r2pm 2022-09-21 20:54:08 +02:00
pancake
0baf76371f Assert null deref in RStr.trim() to address a minor r2pm issue 2022-09-21 12:24:05 +02:00
pancake
51b08ba7f0 Fix recent rref/build issues 2022-09-20 16:40:25 +02:00
pancake
8e1cad4a9f Implement thread-safe refcounting - but disabled by default ##api 2022-09-20 15:34:24 +02:00
pancake
cabe37905c Deprecate the unused RFList ##api 2022-09-20 15:34:24 +02:00
pancake
1e94a082c1 Fix last covs 2022-09-20 14:47:04 +02:00
pancake
11a7bc508e Implement r_str_ntrim() and speedup r_str_trim() with it ##api 2022-09-20 14:36:40 +02:00
pancake
5077caed46 Initial implementation of RString (30% faster than RStrBuf) ##api
* It's stack-based and format-string friendly
2022-09-20 14:36:40 +02:00
pancake
258bc5ce14 Implement r_sys_getenv_asint ##api 2022-09-20 12:44:56 +02:00
pancake
3e547934c8 Remove global from utf8 ##globals 2022-09-20 00:07:48 +02:00
pancake
5daaf54b58 Add :header and :noheader in RTable ##util 2022-09-19 15:58:34 +02:00
pancake
c0b1eb9ba7 Fix #20772 - ihj rendering an invalid json because of pfj ##json 2022-09-19 11:06:01 +02:00
pancake
ec884e6dfa Fix #20760 - Implement native gron via ~{=} ##shell 2022-09-19 11:05:51 +02:00
pancake
97c77155f9 Fix master 2022-09-19 02:40:16 +02:00
pancake
4801bbc13d Add r_file_is_executable and r_file_extension apis ##api
* Boolify some rdebug apis
* Make json.parse arg const
2022-09-19 02:06:35 +02:00
pancake
92236e4b1e Update to the latest SDB that's changing the sdb_itoa() signature 2022-09-18 20:38:58 +02:00
condret
3d45fdc85b Fix crash in r_vector_shrink ##util 2022-09-18 10:01:29 +02:00
pancake
7855759258 Fix UB bug when using r_vector random access ##api 2022-09-18 05:19:16 +02:00
pancake
f6383a05f3 Introduce the new r_arch library, just the skeleton ##arch 2022-09-18 03:41:39 +02:00
pancake
6dae1fcd60
Fix RConfig.setB when the key doesnt exist ##core 2022-09-18 01:36:39 +02:00
condret
bd2837f905 Rename r_arch_set_ to r_arch_config_set_ ##refactor 2022-09-17 04:37:33 +02:00
condret
e2889de5bf Rename R_ASM_SYNTAX to R_ARCH_SYNTAX ##refactor 2022-09-17 00:14:21 +02:00
pancake
bc93eab86c Remove RPrintRowlog and use R_LOG isntead ##shell 2022-09-16 20:45:13 +02:00
pancake
6967f63396
Allow changing number of saved input lines ##shell
Authored-by: Paul B Mahol <onemda@gmail.com>
2022-09-16 15:50:21 +02:00
pancake
26458d6614 Boolify r_type_set and typedef RTypeKind 2022-09-16 11:51:30 +02:00
pancake
b705e334f6 Massage more R2_580 pending changes breaking APIs and ABIs 2022-09-16 11:34:19 +02:00
condret
55160608db Minor COV fix in r_str_char_count ##util 2022-09-16 00:28:14 +02:00
pancake
a6e0d6c480 Merge rhash into rcrypto and improve apis ##api
* Update meson and make build systems
* Remove leftovers and unused dependencies
2022-09-15 11:25:40 +02:00
condret
26107a1f36 Fix return type of r_str_char_count ##util 2022-09-15 01:17:23 +02:00
Paul B Mahol
f1ea6b9c52
Fix memory leak in r_str_list_join() ##api
* StrList.join() no longer drains the source list
2022-09-14 23:49:28 +02:00
pancake
58a5f2d274
Implement log.source and log.origin ##shell
* Update tests
2022-09-14 18:51:02 +02:00
pancake
b2455ad806
Set hex.hdroff=true by default ##print 2022-09-14 16:46:51 +02:00
pancake
22d6bcf2dd
Implement pFAj to render android xml in JSON (abi break) ##print 2022-09-14 08:55:25 +02:00
pancake
fe8b3c17df Implement TSV output format for RTable ##print 2022-09-14 00:19:24 +02:00
pancake
b7af803c8f Add new RStr.replaceAll() api ##util 2022-09-13 21:24:17 +02:00
condret
e2cfddf0cd Add r_strbuf_replace{f} ##util 2022-09-13 21:22:34 +02:00
pancake
46ae247470 Fix another crash in the protobuf parser ##fuzz 2022-09-12 18:56:50 +02:00
pancake
ada98b4dbb Fix oobread in protobuf parser ##crash 2022-09-12 18:52:50 +02:00
pancake
ea16c078d9 Fix oobread in r_str_is_printable_limited ##crash 2022-09-12 18:19:30 +02:00
pancake
68292526ab
Fix some critical bugs spotted by coverity 2022-09-10 01:28:37 +02:00
pancake
6db7d19e72 Add linting to spot misuses of r_strbuf_appendf and fix them all ##refactor 2022-09-09 23:12:01 +02:00
pancake
1d286ff1c7 Add tnf command to filter functions with the new noret column in afl, 2022-09-08 23:39:28 +02:00
pancake
7e0c4ef7c4 Tests for the "standard" splist() implementation ##util 2022-09-07 10:51:47 +02:00
pancake
d9cc0b52d0 Add |E |D |J pipe aliases for base64 command execution and encoding ##shell
```
?e ?e hello world|E
P2UgaGVsbG8gd29ybGQK
> b64:P2UgaGVsbG8gd29ybGQK
hello world
> ?e P2UgaGVsbG8gd29ybGQK|D
?e hello world
```
2022-09-07 10:51:47 +02:00
pancake
20b5ebf501 Fix bug in r_str_split_list() causing 1 length arrays for empty strings 2022-09-07 10:51:47 +02:00
pancake
24cb5cb7f9 Fix Unkown -> Unknown typo and add lint for it 2022-09-06 08:08:24 +02:00
pancake
84a97a57e6 Use more R_LOG in core, bin, debug, io, .. and add more lints 2022-09-06 08:08:24 +02:00
pancake
e57b387f36 Fix last covs 2022-09-06 01:52:17 +02:00
pancake
e250f32159 Don't print eol chars for now to fix an r2pipe issue ##shell 2022-09-04 20:21:13 +02:00
pancake
46eb73dd13 Implement pxu{1,2,4,8} like pxd but unsigned ##print 2022-09-04 18:13:30 +02:00
condret
11545cbe9e Minor bugfix in strbuf.c ##util 2022-09-03 20:49:45 +02:00
pancake
8f56596438 Add table's :help and ignore commas in i subcommand parsing ##bin 2022-09-02 18:26:10 +02:00
pancake
04cff4889c Add some more asn1 oids from apple ##util 2022-08-31 16:40:56 +02:00
pancake
cda4af4f5d Fix last covs 2022-08-29 18:09:37 +02:00
pancake
523d5fdd28 Fill null deref check in the x509 parser ##crash 2022-08-23 03:13:09 +02:00
pancake
b6e7292019 Enable linting for trailing tabs ##lint 2022-08-22 23:25:40 +02:00
Richard Patel
de3b873529 Fuzz protobuf ##fuzz 2022-08-22 20:08:07 +02:00
Richard Patel
f7aabaa5ac Fuzz pkcs7, punycode, x509 ##fuzz 2022-08-22 20:08:07 +02:00
pancake
f9f9e367de Use rlog instead of eprintf in 300 more places 2022-08-22 14:35:04 +02:00