Commit Graph

118 Commits

Author SHA1 Message Date
Florian Märkl
95fa7a3215
Fix dup af+ removing function from hts (#16526) 2020-04-12 04:34:10 +02:00
karliss
1ff6331a33
Don't use colors in json mode and fix some bugs. (#16529)
* fix color being overwritten with "" in loop, resulting in only
endcolor being printed
* rrstr memory leak
2020-04-11 19:48:19 +02:00
pancake
a52506a362
Fix #16210 - Show error message and update help for we ##io (#16427)
* Fix wen command for io.va=true, add two tests
2020-04-08 14:22:01 +02:00
pancake
72d1021462
Fix #14371 - Make wfs paired with wts, rename wfs to wfx ##io (#16470) 2020-04-08 14:13:12 +02:00
Khairul Azhar Kasmiran
38fa5487cb
Format some missed tests ##tests (#16459)
* Move CMDS= before EXPECT= in tests, 2nd pr
* Convert one-line CMDS=<<EOF to single-line CMDS=, 2nd pr
2020-04-07 22:06:47 +08:00
Itay Cohen
d5893f9575
Show realnames on function's signature when enabled ##disasm 2020-04-07 10:26:46 +02:00
Florian Märkl
5c31876093
R2R for Windows (#16410) ##test 2020-04-06 17:40:46 +02:00
pancake
a12d55c6c0
Fix #16394 - Make pm [file] work again ##print (#16428)
* Fix #16394 - Make pm [file] work again ##print
* Add test for pm [file]
2020-04-06 16:02:50 +08:00
pancake
5d6406adec
Fix some tests for ARM64 and PPC (#16435) 2020-04-06 16:02:03 +08:00
pancake
6b31b40a71
Fix #13677 - Add txt command and make txf accept an argument ##types (#16422) 2020-04-05 20:31:47 +02:00
Khairul Azhar Kasmiran
781fcccf55
Move CMDS= before EXPECT= in tests (#16417)
* Move CMDS= before EXPECT= in tests

* Revert "Move CMDS= before EXPECT= in tests"

This reverts commit 13a9085a36.

* Move CMDS= before EXPECT= in tests, take 2

* Revert "Move CMDS= before EXPECT= in tests, take 2"

This reverts commit 7c0bf6d8e3.

* Move CMDS= before EXPECT= in tests, take 3

Co-authored-by: pancake <pancake@nopcode.org>
2020-04-05 20:56:06 +08:00
Khairul Azhar Kasmiran
c853c02880
Move ARGS= directly below FILE= in tests (#16412) 2020-04-04 10:35:31 +02:00
Alexis Ehret
88d8357767
Fix empty struct and add test (#16408) ##types 2020-04-03 13:07:00 +02:00
Khairul Azhar Kasmiran
020bc83996
Uncomment/unbreak FILE=<<EOF tests (#16404) 2020-04-03 00:30:42 +02:00
Khairul Azhar Kasmiran
85b11a1438
Fix #16347: o+ sets maps as writable like oo+ (#16381) ##io 2020-04-02 12:11:41 +02:00
Florian Märkl
91c58506e5
Enable R2R in C for all CI except Windows (#16354) ##test 2020-04-01 23:16:02 +02:00
radare
6379317f57
Add LZMA-BE magic signatures ##search 2020-03-31 21:17:02 +02:00
Khairul Kasmiran
cd2715dc95 Fix interaction of ob with o: 2020-03-30 19:40:57 +02:00
pancake
513de59576 Add ic + icc* tests for objc ##tests 2020-03-30 15:31:36 +02:00
Khairul Azhar Kasmiran
ea0245c908
Add test for o: (#16349) 2020-03-29 21:01:53 +02:00
Florian Märkl
2c7ecc9736
Even more R2R (#16348)
* Fix r2r without FILE
* Fix many tests for r2r-c
* Pipe stdin in r2r to make isatty() return false
* Fix a leak in r2r
* Fix lock usage in RThread
* Always print stderr on failed tests
* Break broken zip tests
* Add -j arg to r2r
* Temporarily disable some tests that js and v don't parse
* Fix ar= trailing newline
2020-03-29 18:07:44 +02:00
Florian Märkl
a88ec62304
Fix the fatmach0-3true writing Test (#16346) 2020-03-29 22:30:40 +08:00
Khairul Azhar Kasmiran
3c7e74f674
Fix ob 0 (#16333) 2020-03-28 17:12:15 +01:00
radare
46adf34e83
Add opaddr field in ab/abj output ##anal (#16331) 2020-03-27 18:10:52 +01:00
radare
9f35d62018
Improve noreturn and aesu times, show it in afi & afij ##anal (#16324)
* Fix fcn->is_noreturn cache and add tests
2020-03-27 06:15:47 +01:00
Khairulmizam Samsudin
4a5161e454
Test dmha/dmh for glibc x64 (#16307)
* Minor printing fix
* Test for dmh/dmha
2020-03-25 17:43:57 +08:00
Riccardo Schirone
0cd90b6b7e Update radare2-shell-parser for new macro syntax and fix tests 2020-03-24 15:23:35 +01:00
Khairulmizam Samsudin
d103f06f38
Remove asm.linesup (#16293) 2020-03-24 15:18:39 +01:00
radare
c3dee9332c
Use @{} instead of @() and fix this modifier ##core (#16292) 2020-03-24 11:05:22 +01:00
karliss
6ba87ea7cf
Don't use r2 shell commands to implemnt an. (#16280)
* Add basic tests for an.
2020-03-23 17:38:33 +01:00
Khairulmizam Samsudin
2e85324bba
Minor fix to get dmh to work with riomap (#16286) ##debug 2020-03-23 16:25:55 +01:00
Florian Märkl
e3a7093a57
Fix a lot of Test Syntax (#16273) 2020-03-22 12:28:42 +08:00
Sylvain Pelissier
ef6e146326
Display correct lengths for cryptography search commands (#16262) ##search 2020-03-20 12:13:34 +01:00
radare
728bc70266
Optimize 'tl', r_core_link_stroff and r_type_link_at (0.01s vs 3s) ##types (#16257) 2020-03-19 15:44:51 +01:00
radare
3099a82256
Hide 128reg warnings and use rgb: instead of # in pal test (#16220) 2020-03-16 13:21:54 +01:00
Khairulmizam Samsudin
bb389101da
Make r_reg_get_list() search harder (#16202) ##reg 2020-03-13 12:01:54 +01:00
Riccardo Schirone
41cb001973
Introduce escaping in grep specifiers (#16185)
* Introduce escaping in grep specifiers

Grep specifiers (the part after `~`) can accept a lot of characters.
However, some of those have a special meaning in some contexts and they
should be parsed for better consistency.

For example, `(` and `)` can have particular meanings inside a macro
definition and it's important to allow escaping to differentiate:

(foo; pd~hello)) -> parsing error, there are 2 closing parenthesis
(foo; pd~hello\)) -> user wants to grep for string 'hello)'

* Add some tests for escaped characters in grep specifier
2020-03-12 18:28:45 +08:00
Riccardo Schirone
c1c54be39e Change macro syntax to use ; instead of ,
This change is to ease the switch to the new parser and make the syntax
more consistent and easy. As things were before this patch, ',' could be
part of an argument of a command, but at the same time it was used as a
separator when defining a new macro. This difference in how `,` is
interpreter, makes parsing commands harder, as grep specifiers,
arguments, etc. should be parsed differently based on whether they are
inside a macro body or not.

By switching to using `;` as separator in the macro body, arguments,
grep specifiers, etc. can be parsed as they would be outside of a macro
body, making the new parser more consistent and easier.
2020-03-11 00:11:01 +01:00
Óscar Carrasco
bde3fa171b
Fix afs not showing signatures correctly with preloaded sdb types ##types (#16180)
* Check if function name starts with "sym.imp"
* Add test for afs'ing "sym.imp" functions
2020-03-10 18:40:05 +01:00
radare
61a06e000d
Implement afsj command to get the JSON definition of the function signature ##anal 2020-03-10 14:28:31 +01:00
HoundThe
5bb50f6a26
Add acvf command and devirtualizing vtable method calls (#16157) ##anal
* Add cmd: acvf [offset] ([class name])
* Added option to search all vtables
* Added simple test
2020-03-10 14:08:14 +01:00
Florian Märkl
a3fa2dde37
Fix double free in oc (Fix #16163) (#16166)
* Fix double free in `oc` (Fix #16163)
* Add test for `oc`
2020-03-09 11:56:20 +08:00
Florian Märkl
a30da17a6f
Fix some Projects Tests (#16167) 2020-03-08 19:56:34 -05:00
Óscar Carrasco
23bb5bb3cc
Fix afs not showing types and args ##types (#16074)
* Fix by implementing r_anal_fcn_to_str

* Refactor function syntax

* Fix testsuite

* Fix leaking pointers and code review

* Move __add_vars_sdb from aaft to af

* Fix more tests

* Rename r_function_get_name to r_function_get_signature

* Fix regression and remove extra semicolon

* Fix last regressions
2020-03-07 05:34:43 -06:00
radare
e37a2e1b9c
Fix UAF in om= (#16149) 2020-03-05 18:07:03 +01:00
radare
d96120799d
Added size info to anal classes (#16129) ##bin 2020-03-05 18:06:27 +01:00
radare
dde3f0c25a
Convert one-line CMDS=<<EOF to single-line CMDS= (#16150) 2020-03-05 17:01:28 +01:00
radare
dfe3be8233
Remove duplicate test, add wopD* test (#16148) 2020-03-05 13:54:46 +01:00
Anton Kochkov
077a796eb5
Remove dupe tests in cmd/shell (#16137) 2020-03-05 12:38:33 +08:00
pancake
bb78ef3457 Drop the reset attributes on newlines 2020-03-04 02:10:07 +01:00