Commit Graph

1673 Commits

Author SHA1 Message Date
radare
4bb4a2ce30
Parse CodeSign blobs and compute sha1/sha256 in mach0 binaries (#11491)
- rabin2 -OC # wip requires proper refactoring and redesign
2018-09-12 16:03:36 +02:00
pancake
f90b534a4d Fix several bugs introduced during r2con 2018-09-10 16:33:29 +02:00
Adrian Pistol
fe6f9badb5 radare2: Try to detect color support and set scr.color accordingly. (#11420) 2018-09-07 16:29:35 +02:00
radare
6ef364521f
Fix #11370 - rahash2 showing the same checksum when passing multiple files (#11372) 2018-09-04 01:28:13 +02:00
pancake
f1dc368018 Fix #11383 - Invalid initial block contents when opening with no file 2018-09-04 01:16:13 +02:00
Neven Sajko
b0436220dc libr/cons: Do proper signal handling, use pselect (#11376)
Fixes async-signal-safety and changing errno within the signal handler
for SIGWINCH, which can cause crashes and maybe security issues.

For async-signal-safety make the signal handler just set a flag, which
is checked for while waiting for input (pselect).

SIGWINCH is blocked process-wide, except in pselect.
2018-09-03 23:46:13 +02:00
Riccardo Schirone
be8ece36a7 io: make r_io_map_new always update skyline
keep a "private" version, named io_map_new, which can be called by the
io module for performance reasons (e.g. loading many maps, you don't
want to sync the status every time when you can do that only one time at
the end of the batch insertion).
2018-09-03 11:18:10 +02:00
pancake
1875a7f4f0 Add error handling in ?x- 2018-09-02 15:58:13 +02:00
Fangrui Song
f538120c04 Fix memleak (#11338) 2018-09-01 10:43:48 +02:00
pancake
bb6212da45 Fix 2 minor gcc8 warnings 2018-08-31 17:56:37 +02:00
Neven Sajko
d8784641ee Add parentheses in macros where needed for safety (#11290) 2018-08-30 13:16:50 +02:00
Neven Sajko
44ecf2f01b Do not hardcode 9 for SIGKILL (#11299)
Changes 9 with SIGKILL as 'kill' operand.
2018-08-29 18:18:14 +02:00
pancake
ff08c059da Kill the isThumb checks (s110-arm-16 half converted) 2018-08-26 23:08:44 +02:00
morbith-dqtz
e09306ab99 Make glibc tcache parsing if checked by a config flag, no more preprocessor (#11266) 2018-08-26 22:50:30 +02:00
Paul I
0ba26fb3d6 Add R2_GLOBAL_RC (#11258) 2018-08-26 14:09:32 +02:00
kij
10265a0507 Remove 2 bashisms, unsure about the last. (#11189) 2018-08-24 15:57:18 +02:00
radare
44627091d3
Fix memleaks in radare2.c (#11221) 2018-08-24 00:20:08 +02:00
Florian Märkl
2883398942 Fix #11081 - Transient Tasks (#11214)
* Make r_th_free() not kill the thread
* Transient Tasks
* Add transient info to & list output
* Use refcounting for Tasks
2018-08-23 13:49:28 +02:00
pancake
6d05365f30 Make RAsmOp use RStrBuf instead of fixed-size buffers
* Seems to work, but there are many things to improve and fix
* Fixed some bugs (overflow, sandbox bypass, ..)
* Exposes some memleaks and bad api usages.
* Refactor all the things! \o/
* Fix z80, tms320 disasm and x86.as
* Care about memleaks
* Support meson
* And fix more tests related to pda and pdj and m68k
2018-08-22 11:43:05 +02:00
kij
10786e5549 r2pm OCD fixes, search list aligned with column 2018-08-21 23:44:19 +02:00
radare
586bf7fc15
ragg2 *.c shows stderr and fix clang cflags (-Os makes non-pic code 🤦) (#11122) 2018-08-18 03:41:24 +02:00
David CARLIER
d77f8a2bce Fix leak for arch value form env var. (#11091) 2018-08-15 10:25:25 +02:00
Rafael Rivera
4634a817c4 Create cons context before col diffing (fixes #11059) (#11060) 2018-08-13 03:12:27 +02:00
Florian Märkl
404e4a1b74 Prompt on exit to kill tasks (#11054) 2018-08-12 13:27:45 +02:00
pancake
042f5271ba Bring back the old -w that implies R_IO_CREAT 2018-08-11 20:44:28 +02:00
pancake
d55bb122f3 Kill r_io_creat and make it into R_IO_CREAT, honor -ww 2018-08-11 20:44:28 +02:00
pancake
456de668b7 Fix #10947 - open without va when creating a new file 2018-08-11 20:44:28 +02:00
pancake
aa0581ab81 Use more r2 -H and less hardcoded paths in r2pm 2018-08-08 17:09:03 +02:00
pancake
b32a675371 Show R2PM_ variable values in r2pm -h 2018-08-08 16:51:19 +02:00
Maijin
b60a25b914 Add more R2_ prefix for some var 2018-08-07 22:14:54 +02:00
Maijin
b3d081abcd Add some R2_ prefix for some var 2018-08-07 22:01:59 +02:00
Arnaud Lefebvre
d934934efc r2pm: install r2pm in bindir instead of $PREFIX/bin (#10976) 2018-08-07 14:29:51 +02:00
Fangrui Song
08e6ed3b78 Fix some -Wincompatible-pointer-types-discards-qualifiers warnings (#10951) 2018-08-07 11:50:06 +02:00
Anton Kochkov
5b5667138c Fix UB and UAF 2018-08-07 13:00:06 +08:00
JohnPeng47
ab92677eda Add pemixed plugin 2018-08-06 01:22:11 +02:00
Maijin
6eda76e0f8
Fix #1361 (#10889) 2018-08-01 22:27:19 +02:00
pancake
bb8f2b0773 Fix #10865 - hang_03 - skip invalid sections when marking data words 2018-08-01 00:57:36 +01:00
Khairul Azhar Kasmiran
d42b734a84
rax2: add new output mode for Fx (#10840)
* rax2: add new output mode for Fx

* Reversed order of tests
2018-07-29 11:04:52 +08:00
Tyler Lambert
8255f2a96c Verify input is not in hex before interpreting as float (#10821)
* verify input is not in hex before interpreting as float

* check for "0x" prefix before converting to float
2018-07-28 13:18:13 +08:00
Khairul Kasmiran
943ebfebd5 Fixed typo in rabin2 usage help 2018-07-24 22:53:02 +08:00
Khairul Kasmiran
dfa196ddd2 Revert "End rabin2 json output with newline"
This reverts commit 40c68d9ec0.
2018-07-22 21:32:32 +08:00
pancake
20b95e4bb4 Fix asan issue related to the hashbang launch 2018-07-19 17:25:44 +02:00
Anton Kochkov
6e73443942 Try to fix MSVC build 2018-07-19 18:09:19 +08:00
pancake
b21035349d Fix - - - behaviour 2018-07-19 11:41:27 +02:00
Khairul Kasmiran
2d83bb2a26 entries->initfini for ieej/rabin2 -ee -j since former key is already used 2018-07-18 19:33:12 +02:00
Paul I
9cb663cbdb Fix r2 -H MAGICPATH 2018-07-17 23:19:21 +02:00
Riccardo Schirone
c932d1abff
meson fixes (#10743)
* r2pm/meson.build: install r2pm
* meson.build: use system libraries when available
* travis: add fedora-sys to the list of things to test
* bin_nso.c: still include lz4.c when not on meson
* Dockerfile.travis: add required system dependencies to dockerfile
* meson.build: split zip_dep in libzip and zlib dependencies
* shlr/meson.build: zip needs zlib
2018-07-17 23:01:40 +02:00
pancake
7463546f13 Fix android build 2018-07-16 17:49:15 +02:00
Khairul Kasmiran
40c68d9ec0 End rabin2 json output with newline 2018-07-16 14:09:22 +02:00
pancake
2c85194e7a Fix some warnings 2018-07-14 10:45:55 +02:00