Commit Graph

19401 Commits

Author SHA1 Message Date
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
Paul I
4ed384b230 sys/meson.py: install libr/include/msvc on Windows (#11507) 2018-09-13 08:34:14 +02:00
pancake
35bd0fbf06 Add pFo, parse certs from mach0's cdhash and minor x509 cleanup 2018-09-13 01:15:18 +02:00
xrmon
9b69f8261f Show column headers in RBin info (r2con) (#11444) 2018-09-12 23:14:55 +02:00
Khairul Azhar Kasmiran
95f75f3aa9 cmd.load: Run when binary is loaded (#11483) 2018-09-12 23:12:52 +02:00
Akshay Ajayan
51842d7027 print class name in avra (#11486) 2018-09-12 21:03:45 +02:00
pancake
39c527acf0 Fix signbit build problems for android-arm 2018-09-12 18:59:44 +02:00
Michael Scherer
b88ed340fb Remove global for addr since that's uneeded (#11501) 2018-09-12 18:45:59 +02:00
Michael Scherer
06243a1b3f Fix format string for dsb (#11502)
Since bb->size is a int, we should use %i, not %lld, as this cause
a error with linters (lgtm.com in this case).
2018-09-12 18:44:49 +02:00
radare
3cc11aa9fe
Some cleanup in ASN1/X509/PKCS7 to make pF work (#11499) 2018-09-12 18:43:59 +02:00
Riccardo Schirone
4b1e500423 travis-script: exit if meson build/install fails 2018-09-12 16:24:17 +02:00
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
Riccardo Schirone
08f8e48ca1 Coverage codecov (#11494)
* travis: just merge linux/meson build with coverage one

* update travis.yml and extract-var

* change a bit call to codecov.sh

* switch to ubuntu:bionic

* fix docker.travis

* fix LD_LIBRARY_PATH

* Dockerfile.travis: add pkg-config

* Dockerfile.travis: install npm

* dockerfile.travis: somehow pkg-config was removed

* travis: switch back to latest

* travis: do not hardcode machine

* move COVERAGE=1 after INSTALL_SYSTEM
2018-09-12 18:24:19 +08:00
morbith-dqtz
1ee0b58709 11471 Quick fix, setting dbg file via config (#11476) 2018-09-12 11:56:01 +02:00
Neven Sajko
2b7990fcee libr/cons: Fix SIGWINCH logic (#11470)
Fixes two bugs; puts pselect in a loop to enable resizing window more
than once before there is any input, and reset sigwinchFlag to zero when
resizing window.
2018-09-12 11:55:20 +02:00
Michael Scherer
7f816f53db Fix r_hex_str_is_valid to handle space like r_hex_str2bin (#11489)
r_hex_str_is_valid is called only once from r_reg_arena_set_bytes,
to find the size of the hexadecimal string. However, it stop
at the first space, while the method used for the conversion
r_hex_str2bin is skipping space and continue to convert.

So with a long enough string passed to drw and arw, it is possible
to crash r2, as reported in https://github.com/radare/radare2/issues/11407
2018-09-12 04:29:27 +02:00
Michael Scherer
3874b7b964 Fix r2 -c '?btw 1 1 1' /bin/ls (#11488)
There is no reason for the list returned by r_num_str_split_list
to have a link with a variable called 'free', and this cause crash with
ASAN, as seen on https://github.com/radare/radare2/issues/11407
2018-09-12 03:40:51 +02:00
pancake
b25653ec2a Honor ^C in /h 2018-09-12 00:47:07 +02:00
Maijin
394d125b79
Check canary with symbols fix #11477 2018-09-11 14:00:12 +02:00
Konrad Beckmann
8c8b5823fe Fix #11480 Fix crash when asm.decoff is enabled (#11481) 2018-09-11 09:55:18 +02:00
Riccardo Schirone
5099a481f1
core/disasm: fix double free when freeing ds->hint (#11484) 2018-09-11 09:48:13 +02:00
pancake
4e2ab95628 Fix eco crash and add ecoq 2018-09-10 17:36:17 +02:00
pancake
f90b534a4d Fix several bugs introduced during r2con 2018-09-10 16:33:29 +02:00
Maijin
2b8c94c2cf Fix #11418 dbg_file in full (#11453) 2018-09-10 16:25:50 +02:00
David CARLIER
497148b0cd disasm leak fix & warning silencing. (#11475) 2018-09-10 15:47:47 +02:00
Fangrui Song
2aef3b7be3 Remove RIOAccessLog (#11238)
There were introduced in siol but it is apparent that nobody uses the
API in the year. They make up a significant unused part of IO that distract readers enough and would hamper further IO cleanups.

Their introduction was probably an instance of XY problem. They were supposed to facilitate analysis, esil and debugging io but how they could benefit the features is never clearly justified.
Usually, you not only need raw bytes but also metadata attached to them.
You would have to add a layer on top of RIOAccessLog anyway, render them not so useful.

These stuff are still in git histories. They can be revived anytime when their values are clearly testified.
2018-09-10 15:39:31 +02:00
Michael Scherer
03b449c099 Fix #11454 - Evaluate va before applying workaround for raw binaries (#11463)
In 764a3cc, the code got moved upper, but one case got forgotten,
since it did depend on va to be updated before, which wasn't moved.
2018-09-10 14:52:00 +02:00
Paolo Monti
8dd9045eaf Fixing assembly of inc/dec (#11466)
* Some initial fixes

* Better fix

* More support for inc and dec assembly

* Fix 32 bits stuff
2018-09-10 10:32:12 +02:00
Northern-Lights
eea598d980 Fix #11464, reinstate Ct functionality (#11465)
* Step 1 in fixing Ct: behave like CC

* Strip functionality irrelevant to Ct

* Rename Ct function

* In Ps, dedicate formatting for Ct

* Do not escape Ct comments

* Cleaner sanitize (but not escape) for Ct comments

* Reinstate Ct. [@ addr] command

* Add help msgs for Ct

* Free mem-leaked comments

* Use strdup instead of r_str_ndup
2018-09-10 10:27:47 +02:00
Maijin
57024df5f3 Enhance aaa log (#11452) 2018-09-09 14:47:44 +08:00
Luca Di Bartolomeo
f9b051bbd4 Removed duplicate reflines on local labels (#11458) 2018-09-09 14:26:19 +08:00
Giovanni
1dbdabf83c C-Sky and MCore support for r2 (#11448) 2018-09-08 19:52:33 +02:00
Maijin
1e429810eb Add VStudio Code in gitignore 2018-09-08 19:07:48 +02:00
ylmrx
7a5a4c9661 Several themes related changes [r2con] (#11435)
- Adding a command ('ecoc') to print current color theme (c->current).
- Documenting the available themes JSON listing.
- defining a specific 'eco?' for themes related commands.
- Adding a cute little arrow to point current theme when listing themes.
- Replacing nextpal() with r_core_list_themes(), for the list, so the
code is less confusing (it's still used elsewhere ('ecp', 'ecn'), didn't remove it)
- Correcting several typos in eval docs
2018-09-08 19:03:33 +02:00
David CARLIER
1eae637f4b Fix #11424 attempt. (#11451)
Deduplicate java function entries.
2018-09-08 18:28:54 +02:00
Adrian Pistol
3b88e32ea8 cmd_open: Make on use r_io_open_at. (#11436) 2018-09-08 18:28:31 +02:00
Anisse Astier
1b36c2485e esil: improve arm64 simple store pre/post index emulation for r2wars
While writing an r2wars bot, I found that there was a missing emulation
of pre/post index of arm64. It's supported for ldp/stp, but not
single-register stores.
2018-09-08 18:27:27 +02:00
Anisse Astier
ee20c191e6 esil: fix arm64 stp comment
preindex has a !
2018-09-08 18:27:27 +02:00
Pavel Krčma
318012c2dc A quick fix for Android native build (#11449) 2018-09-08 17:54:20 +02:00
Maijin
e935992de5 More verbose idpd 2018-09-08 13:11:10 +02:00
Maijin
44ecf11e56 Add ptrace in fcn database 2018-09-08 12:47:07 +02:00
morbith-dqtz
0baadb414c linux_heap_glibc: fix dmhf and allows dmhf @thread_arena (#11441) 2018-09-08 12:29:31 +02:00
klobs
6069422d0c Mention "l" command in help text (#11446)
The "l" command is currently missing in the help.
2018-09-08 12:29:12 +02:00
fcasal
d6aa6e94a3 Fixes one crash of #11407 (#11443) 2018-09-08 12:08:48 +02:00
Кirils Sоlovjоvs
0f40eee44d Fixing some typos in fortunes.fun (#11438)
+ 1 change
2018-09-08 12:06:00 +02:00
Vanellope
36c1a9873b Fixed putting a breakpoint by F2 does not refresh the Panel (#11439) 2018-09-08 12:05:38 +02:00
jvoisin
ccf8008798 Add even moar help 2018-09-07 16:42:36 +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
jvoisin
9fd8f5068b Add help for p6[de] 2018-09-07 16:28:49 +02:00
jvoisin
3b0cdc0679 Streamline help in pr and prg 2018-09-07 16:19:25 +02:00