Anthoine Bourgeois
41339efd7c
Do not execute subcommand under simple quotes protection.
...
Partially fix:
db/cmd/feat_quote Quotes and substitution - newshell
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
6a6b8a0e41
Protect arroba under quotes.
...
Tests fix:
db/cmd/feat_quote Single quotes - newshell
db/cmd/feat_quote Double quotes - newshell
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
6544e53680
Write cmd also need to handle quotes like echo cmd
...
Partially fix:
db/cmd/feat_quote Double quotes - newshell
db/cmd/feat_quote Single quotes - newshell
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
63f874c310
simple and double quotes also unescape.
...
Partially fix:
db/cmd/feat_quote Single quotes - newshell
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
4cf97fadc2
Trim arguments to be closer to echo
...
Test fixed:
db/cmd/cmds hash comment and simple quote
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
752ddf6a46
debug: Do not print 0 on unknown register
...
Fix CI linux-test.
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
c88877f990
Remove refs to radare2-shell-parser
...
This fix the CI build of linux-static.
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
987212fdd6
unescape the alias' argument
...
Test fixed:
db/cmd/cmd_interpret $foo=#!pipe
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
074f027fd3
cmd: simple quotes also escape the hash comment
...
Add a new test:
db/cmd/cmds hash comment and simple quote
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
6e838b6ba4
cmd: double quotes escape the semi-colon command separator
...
Simple quotes already has.
Test fixed:
db/tools/rax2 C array {0x33,33,23,32}
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
e55da9853f
cmd: flush console buffer between multi-command
...
Tests fixed:
db/cmd/feat_grep multi-command single-line grep
db/cmd/cmd_zignature af ; af ; zfs libc-v10.sig - newshell
db/cmd/cmd_zignature af ; af ; zfs libc-v7.sig - newshell
New test failed:
db/tools/rax2 C array {0x33,33,23,32}
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
Anthoine Bourgeois
a846d314dc
Fix type "intgerp" -> "intgrep"
...
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
pancake
cbc949c039
Remove tree-sitter and the r2-shell-parser ##shell
...
* Will be reimplemented soon with a new parser
* Simplifies and speedup the build
2021-04-24 21:58:09 +02:00
pancake
5f5d05d9dc
After release version bump
2021-04-24 17:59:49 +02:00
Dennis Goodlett
f550986e8e
Add byte signature diff zd
##diff ##signatures ( #18620 )
2021-04-24 09:26:13 +02:00
David CARLIER
9a14c294fc
r_types: Reverse order of constant definitions for Darwin ( #18618 )
2021-04-23 19:56:58 +02:00
condret
704d779cb2
Speedup r_codemeta_in on 32-bit platforms
2021-04-21 21:11:13 +02:00
pancake
8399b8859b
Release 5.2.1
2021-04-21 20:25:58 +02:00
pancake
07be57f33a
Fix loading symbols from nested ELF ##bin ( #18615 )
2021-04-21 20:25:04 +02:00
pancake
c3aafd6930
Aim to blind fix the termux build date issue
2021-04-21 20:11:42 +02:00
condret
e28606ffb9
Fix upper boundary check in r_codemeta_in ( #18614 )
2021-04-21 19:57:59 +02:00
pancake
be248ddc1b
Fix some Leaks in Dex ( #18613 )
...
Co-authored-by: Florian Märkl <info@florianmaerkl.de>
2021-04-21 18:52:47 +02:00
pancake
612fc9b35a
Fix oobread bug in the GNU arm64 disassembler ( #18612 )
2021-04-21 18:10:12 +02:00
pancake
580ebc8edc
Fix oobreads in the PE SEH parser ( #18611 )
2021-04-21 15:21:55 +02:00
pancake
46fbda4183
Fix a couple of oobreads ( #18610 )
2021-04-21 14:46:31 +02:00
pancake
bfcc61b48f
Fix OOB read crash in dex parser ( #18609 )
2021-04-21 13:24:50 +02:00
pancake
0f5a7ce45f
Fix non-null terminated bug in io.winedbg
2021-04-21 13:22:37 +02:00
pancake
95f655b455
Fix out of bounds read in anal.arm64 bug spotted by coverity ( #18608 )
2021-04-21 13:21:00 +02:00
pancake
ea43bc4da9
null terminate long string in rtrshell
2021-04-21 13:11:41 +02:00
pancake
267b04e04c
Fix non-null terminated string issue in visual
2021-04-21 13:10:45 +02:00
pancake
d1cd05a82d
Fix oob read crash in dietline
2021-04-21 13:07:04 +02:00
pancake
b24cd8c692
Fix off-by-one read issue in r_file_abspath_rel
2021-04-21 13:04:55 +02:00
pancake
b8fb36bae1
Fix UAF in r_parse_immtrim
2021-04-21 13:00:42 +02:00
pancake
402051f66e
Fix uninitialized variable bugs in libzip
2021-04-21 12:45:34 +02:00
pancake
f98bdc775f
Add dbg.wrap for changing want_ptrace at runtime ##debug ( #18607 )
2021-04-21 12:07:01 +02:00
pancake
1721ebf558
Fix #18604 - UB in left shift parsing uleb128 ( #18605 )
2021-04-21 11:29:33 +02:00
pancake
ba10740fe5
F keys in interactive graph forces to refresh the thing ( #18606 ) ##graph
2021-04-21 10:47:49 +02:00
pancake
b0cfb6f714
Fix Alpine debugger build warnings
2021-04-21 08:36:30 +00:00
pancake
6ada19d138
Use RCodeMetaItem.clone in the test
2021-04-21 10:18:30 +02:00
pancake
05cf509ef8
API compat define for 5.2.0
2021-04-21 08:24:46 +02:00
Michal Ambroz
3b95a8f754
Avoid c99 feature ( #18602 )
...
Hello,
this patch avoids c99 feature of declaring variable withing the for stanza.
Sample build log output
FAILED: libr/crypto/libr_crypto.so.5.2.0.p/p_crypto_cps2.c.o
cc -Ilibr/crypto/libr_crypto.so.5.2.0.p -I. -I.. -I../libr/include -I../shlr/spp -I../shlr/sdb/src -pipe -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -O2 -g -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC -pthread -DR2_PLUGIN_INCORE=1 -MD -MQ libr/crypto/libr_crypto.so.5.2.0.p/p_crypto_cps2.c.o -MF libr/crypto/libr_crypto.so.5.2.0.p/p_crypto_cps2.c.o.d -o libr/crypto/libr_crypto.so.5.2.0.p/p_crypto_cps2.c.o -c ../libr/crypto/p/crypto_cps2.c
../libr/crypto/p/crypto_cps2.c: In function 'set_key':
../libr/crypto/p/crypto_cps2.c:729:3: error: 'for' loop initial declarations are only allowed in C99 mode
for (int b = 0; b < 10 * 16; b++) {
^
../libr/crypto/p/crypto_cps2.c:729:3: note: use option -std=c99 or -std=gnu99 to compile your code
ninja: build stopped: subcommand failed.
2021-04-21 01:27:33 +02:00
pancake
1d600a39ae
Fix unit test
2021-04-21 01:05:57 +02:00
pancake
f90995b526
Break the RCodeMeta API once again
2021-04-21 00:15:46 +02:00
condret
e80982d7f3
Codemeta speedup ( #18601 )
...
* Implement new rbtree cmp for inserting codemeta
2021-04-20 22:27:16 +02:00
pancake
b5e262a6b9
Linux debugger improvements
2021-04-19 17:28:42 -07:00
pancake
c04ae7dd64
Fix warnings in the ihj command ( #18599 )
...
Co-authored-by: pancake <pancake@nopcode.org>
2021-04-19 14:17:14 +02:00
RHL120
13bc241a03
Added stricter rules to is_valid_project_name ##projects ( #18598 )
...
* Only allow lowercase letters, numbers and lowerdash
2021-04-19 14:15:27 +02:00
pancake
88c76bc0f1
Use debian stable to build the debian package instead of Ubuntu ( #18595 )
...
* GHA references https://github.com/actions/virtual-environments/issues/3111
2021-04-19 14:14:33 +02:00
pancake
1e0e357cd7
Fix warning to make the CI happy
2021-04-19 14:08:23 +02:00
pancake
a3896df17a
Cleanup codemeta and follow standards in free methods ( #18596 )
2021-04-19 13:48:58 +02:00