Commit Graph

310 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
Khairul Azhar Kasmiran 9227c6790f
Fix #16433 - Support movabs for x86_64's MOV r64, imm64 (#16527) 2020-04-11 23:34:44 +08:00
Sylvain Pelissier c53f1a30ca
Update swf test and path (#16518) 2020-04-10 19:04:40 +02:00
pancake af51074455
Fix #16455 - `iij` asserts for ld-uclibc with a null import ##bin (#16509)
* Fix asserts in `iij` for ld-uclibc with a null import ##bin
* Add test for `iij` on ld-uclibc
2020-04-10 12:00:30 +08:00
Khairul Azhar Kasmiran f31e6ca527
Fix #16283 - Continue as normal even if detachee is not found (#16500) 2020-04-09 23:07:03 +02:00
pancake e4818cd5e5
Fix #16418 - Implement blind main detection on endbr+mov files ##bin 2020-04-09 11:49:39 +08:00
Alexis Ehret 60ee0daa91
Implement r_table_uniq as API and query (#16385) ##util 2020-04-08 20:34:05 +02:00
Paul I 7fd737b5ac
Fix COFF symbols/imports info (#16446) ##bin 2020-04-08 20:22:26 +02:00
Alexis Ehret 1c29509145
When computing ELF relocations, use DYNAMIC segment if available (#16419) ##bin 2020-04-08 20:20:23 +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
Anton Kochkov 6f03942d8f
Remove r2r.js remnants (#16461) 2020-04-07 23:46:55 +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
Florian Märkl 6d633a96a9
Run Fuzz Tests with r2r (#16456) 2020-04-07 13:27:19 +02:00
Itay Cohen d5893f9575
Show realnames on function's signature when enabled ##disasm 2020-04-07 10:26:46 +02:00
Anton Kochkov efcc346cd8
Remove old R2R (#16445) 2020-04-07 10:25:56 +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 38b8d5929d
Fix #16413 - Analyze code refs spotted with aae ##anal (#16423)
- Find 600 functions in a MIPS binary, without this only 4 functions are found
2020-04-05 22:36:43 +02:00
pancake 6b31b40a71
Fix #13677 - Add txt command and make txf accept an argument ##types (#16422) 2020-04-05 20:31:47 +02:00
pancake 7be2b26ec5
Use r_str_trim_head_ro instead of hacky while loops (#16416)
$ git grep IS_WHITE | grep while
2020-04-05 15:50:19 +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
Florian Märkl 2e735dff07 Add Windows argv Formatting 2020-04-02 23:41:58 +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 eaa46ca936
Implement x86 anal.jmp.retpoline switch tables (spectre/meltdown) ##anal (#16391) 2020-04-01 16:49:39 +02:00
Anton Kochkov dc790f5250 Some README fixes 2020-04-01 13:02:10 +08:00
Florian Märkl 80e29297d3
Remove unnecessary include from test/Makefile (#16386) 2020-03-31 22:59:24 +02:00
radare 6379317f57
Add LZMA-BE magic signatures ##search 2020-03-31 21:17:02 +02:00
pancake c8157f65d0 Delete the r2r.v and use r2r.c ##test 2020-03-31 15:58:49 +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
pancake cfc1c663c3 Fix parameters order when running r2 tests 2020-03-30 15:00:26 +02:00
Florian Märkl 2a9d7e9d44
Much more R2R (#16352)
* Add r2r to R2BINS
* Fix iSj. trailing newline
* Dedup default worker count in r2r
* Fix some more Tests
* Decide archos in r2r
* Add more args and run json tests with r2r
2020-03-29 21:04:51 +02:00
Khairul Azhar Kasmiran ea0245c908
Add test for o: (#16349) 2020-03-29 21:01:53 +02:00
Florian Märkl b9538189cf
Escape broken UTF-8 in Filename (#16351) 2020-03-29 21:00:17 +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
Florian Märkl 141ae9d0a1
More R2R in C (#16338)
* Fix r2r coverities (Fix #16330)
* Fix SIGCHLD Handling in r2r
* Fix ARGS in r2r
* Make r2r fail on parse errors
* Support multiple files in r2r and print cmd
* Make r2r print exit status
2020-03-29 11:32:21 +02: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
Florian Märkl 04e257bd47
R2R in C Enhancements (#16310) ##test
* Skip extras dirs in r2r by default
* Fix BROKEN loading in r2r
* Print actual diff in r2r-c
* Fix some tests for r2r-c
* Do not require stdout if not specified in r2r-c
* Address most review comments
2020-03-27 06:13:41 +01:00
Khairul Azhar Kasmiran 5241ef59b6
Upgrade to node-r2r 0.5.0 and add relevant tests (#16319) 2020-03-26 15:42:59 +01:00
Khairulmizam Samsudin 80f59a7c5f
Fix dmht for glibc caused by wrong tcache offset and definition (#16247)
* Add new function to obtain tcache chunk size

* Fix tcache address and offset in print_tcache_instance()

* Fix tcache_perthread_struct definition

* Update fc_offset to actual size of tcache

* Add test

* Rename test bin filename
2020-03-26 00:27:36 -05:00