2890 Commits

Author SHA1 Message Date
ChD1
c70f38325a
Added messages if pf. can't set value ##print 2021-01-31 16:32:43 +01:00
ChD1
580bdf2c52
Fix some bugs in dex.c, marshal.c, panels.c and other code optimization and fixel (#18297) 2021-01-27 10:53:50 +01:00
Kamil Rytarowski
9d761f6a88
Avoid array subscript type issues (#18295)
Cast char to unsigned char for standard reasons and security purposes.

Fixes build issues on NetBSD.
2021-01-26 13:08:58 +01:00
Qijia Liu
b8afdf8d7d Fix memleak in db/formats/mangling/mangling 2021-01-25 02:37:21 +01:00
Alexis Ehret
5b1b0c0da6 Fix dead increments 2021-01-25 00:34:58 +01:00
Paul I
8e622bc4df RTable: replace UT64MAX with dashes for X specifier 2021-01-25 00:34:58 +01:00
Fangrui Song
0d4d8c083f
radiff2: drop MODE_DIST (#16986)
MODE_DIST (-s) is the same as MODE_DIST_LENVENSTEIN (-ss) but much slower.
Drop it. Make MODE_DIST_MYERS (-sss, faster than MODE_DIST_LENVENSTEIN) take its place (-s).

The original comment was incorrect (-s is not Eugene W. Myer's algorithm). It is correct now.

* drop buggy Levenshtein and rename the original
* fix tests

Co-authored-by: eagleoflqj and Maskray
2021-01-24 22:17:25 +01:00
Liumeo
a79bf446fa
Use pj in debug ##refactor (#18270) 2021-01-24 16:07:30 +01:00
pancake
138c5a9b42
Fix UB in clz(0) spotted by asan (#18265)
* unum.c:41: runtime error: passing zero to clz(), which is not a valid argumentruet

Co-authored-by: pancake <pancake@nopcode.org>
2021-01-22 01:45:16 +01:00
pancake
c3f7d0e1d1
Add CI test to ensure symlink reinstalls work (#18252) ##build 2021-01-22 00:52:12 +01:00
Liumeo
39f5b12b8f
Use pj in cmd_log and cmd_print ##refactor (#18259) 2021-01-22 00:51:33 +01:00
Liumeo
b8784098f7
Fix memleak in db/esil/apple (#18238) ##bin
* Add r_skiplist_insert_autofree and fix memleaks in db/esil/apple
2021-01-19 11:49:42 +01:00
Alexis Ehret
4827f58ea6 Refactoring function r_str_isnumber 2021-01-19 05:37:17 +01:00
Alexis Ehret
a3f05a9b1a Fix dead increments in places 2021-01-19 05:37:17 +01:00
Alexis Ehret
8ad2d817c2 Refactoring function r_type_func_guess 2021-01-19 05:37:17 +01:00
Alexis Ehret
78dc2b5b5f Fix dead increment libr/util/utype.c 2021-01-19 05:37:17 +01:00
Giovanni
5ffe3e4240 Fixing clang flow warnings (#321) ##rizin 2021-01-19 05:37:17 +01:00
Alexis Ehret
21c98d60ac Remove all dead assignment detect by clang sa (#310) ##rizin 2021-01-19 05:37:17 +01:00
pancake
c66b83c679 Fix -Wmaybe-uninitialized issue 2021-01-18 14:48:00 +01:00
pancake
3d2856bb81 Type and null check fixes for RConfig 2021-01-18 11:15:04 +01:00
pancake
917682ac13 Fix plugin type name array issue in Lc command 2021-01-16 03:20:20 +01:00
pancake
08d7fe688c Implement RTable:sql and add RTable.name ##core 2021-01-15 10:56:58 +01:00
pancake
298888dfec Fix issues spotted with gcc -Werror 2021-01-13 01:28:10 +01:00
pancake
1184610971
Fix the CI badge and fully rewrite all the workflows to make sense ##build
* Windows, Linux, Static, macOS, Android, iOS builds published for every commit
* Kept coverage, coverity, fuzzing tests, lgtm and -Werror jobs
* Kill the continuos, the over-engineered matrix and other empty or unnecessary tasks (250 vs 900LOC)
* Jobs TODO: fatmac, termux and rpm (centos) packages
2021-01-12 13:41:21 +01:00
pancake
791794678f Lowercase DEX method attributes and move r_num_bit_count() ##bin 2021-01-09 17:38:54 +01:00
pancake
3ab33d119e Code cleanup and other minor refactoring changes 2021-01-09 17:38:54 +01:00
eagleoflqj
7b1b103f13 Fix r2 - tab crash related to regex apis 2021-01-09 12:47:47 +01:00
Dennis Goodlett
d78ef5602e Fix underflow in r_list_pop 2021-01-09 12:37:23 +01:00
liumeo
965f3ed10e Use pj in dmj, dmhj & fix regex r2r ##refactor 2021-01-09 12:35:20 +01:00
pancake
ae3ff63bab Massage RRegex to fix codingstyle and a null deref. ##regexp 2021-01-08 04:42:07 +01:00
eagleoflqj
581aaed9c0 Fix s390x test_buf 2021-01-05 10:22:50 +01:00
pancake
f7000b7dcb Use UID instead of PID to identify the user to avoid changing projects everytime ##projects 2021-01-03 10:54:00 +01:00
pancake
898173aa38 Add RFile.new and RFile.move APIs ##util 2021-01-03 10:54:00 +01:00
pancake
cf91324937 Remove file.path and file.lastpath and add RProject ##projects 2021-01-03 10:54:00 +01:00
Liumeo
a637aa281d
Fix s390x rax2 -I & memleak (#18151) 2021-01-01 22:48:28 +01:00
pancake
0cd6b5528a
Initial implementation of r_cons_eprintf ##cons (#18145) 2020-12-31 19:35:01 +01:00
Carson McManus
92d4685be6
Add a progress bar for when scripts are running ##shell
* Add config var `scr.progressbar` to display a progress bar when running a script
##print
* Don't show progressbar when not in a tty
* Also don't show progressbar when scr.interactive == 0
* Add a progress bar for when scripts are running. Includes when projects are being loaded
* Add config var `scr.progressbar` to display a progress bar when running a script
* Don't show progressbar when not in a tty
* Also don't show progressbar when scr.interactive == 0
2020-12-29 04:48:03 +01:00
gogo2464
8f17b3241a
Add 'ascii' charset #print 2020-12-28 21:30:36 +01:00
pancake
b77d97a6a9 Improve str.wrap, add cons.line and fix cons.printat glitch ##cons 2020-12-23 23:14:07 +01:00
Lazula
f2976d3c7e
Use r_str_get_fail() throughout codebase ##refactor (#18079) 2020-12-21 08:51:44 +01:00
pancake
d3157e2ed3
Fix 32 critical COVs (UAF, UB and OOB) (#18077) 2020-12-21 01:10:22 +01:00
Liumeo
8c742b28f0
Fix arm32 db/cmd/cmd_pc (#18053) 2020-12-20 19:56:27 +01:00
pancake
d813cf19ca
Add r_str_wrap() and r_cons_printat() new APIs needed by r2book ##cons 2020-12-20 14:10:21 +01:00
Liumeo
1491be12b6
Fix arm32 db/cmd/cmd_i (#18056) 2020-12-19 09:59:30 +01:00
gogo2464
38e33288fb
Refactor to move RCharset from RCore to RPrint (#18059) 2020-12-18 22:13:03 +01:00
Lazula
4a1a624318
Clean up r_num ##util ##refactor (#18049)
* Fix function spacing for r_num functions
* Remove r_num_ntohs
* Rename r_num_to_trits to r_num_to_ternary for
  consistency with surrounding code
* Rename trits to ternary in other files
* Fix spacing in test_contrbtree.c
2020-12-17 22:24:27 +01:00
pancake
aaa930ab26
Improve and formalize r_name_check() along all the base ##core (#18020) 2020-12-16 14:49:50 +01:00
pancake
2f4888b003
Add r_str_escape_r2 helper function ##util (#17707) 2020-12-16 13:56:19 +01:00
pancake
cb33fdb420 Improve code, add cfg.charset, use pse, add test ##print 2020-12-14 12:11:13 +01:00
gogo
f16168fa36 Initial implementation of custom charset encodings ##print 2020-12-14 12:11:13 +01:00