Commit Graph

12758 Commits

Author SHA1 Message Date
Roi Martin
a325be8a34 Implement PR suggestions 2017-06-03 14:43:31 +02:00
Roi Martin
8fa459138f Minor fixes 2017-06-03 14:43:31 +02:00
Roi Martin
02c84680c3 Refactoring and improvements 2017-06-03 14:43:31 +02:00
Roi Martin
7618894635 Move file autocompletion to a separate function 2017-06-03 14:43:31 +02:00
Roi Martin
d28cd0fe36 Remove trailing space 2017-06-03 14:43:31 +02:00
Lowly Worm
192dbad64e fix a few covs for out of bounds reads/writes
from fencepost errors
2017-06-03 01:21:07 -04:00
Anton Kochkov
3acd8e365c Fix dmh canvas config usage (#7661) 2017-06-02 16:47:49 +02:00
Khairul Azhar Kasmiran
6d832921df Search with json output now doesn't escape twice (#7659) 2017-06-02 13:29:43 +02:00
pancake
e79fa35020 Fix silly regression 2017-06-02 12:22:25 +02:00
Lowly Worm
383386ed14 add skiplist from crowell/ret2libc to r_util (#7657)
not used anywhere, but allow usage of the data structre for future use
2017-06-02 11:19:53 +02:00
pancake
b7c7dcfbc2 Blindfix a null deref and 2 byte overflow in disasm 2017-06-01 23:57:36 +02:00
Sven Steinbauer
555f313498 Only skip NULL bytes if not url encode or wrapped (#7654) 2017-06-01 19:11:37 +02:00
Francesco Tamagni
1c6ee8dd3a Honor cpu on anal_mips_cs and add/fix some mips64 instruction (#7643)
* Honor cpu on anal_mips_cs and add/fix some mips64 instruction
* Add mips2 capstone patch
* mips: add v2 cpu, remove 64v2, mips32/64 is default
2017-06-01 18:18:15 +02:00
Rene Laemmert
e8833cd5e8 FIX #7597 use and sort fresh funcitonlist instead of the existing one… (#7644) 2017-06-01 17:09:02 +02:00
Anton Kochkov
f4a2b07139 TCC - Saving types across sessions and add Arch/OS specific defines 2017-06-01 16:57:00 +02:00
Sven Steinbauer
fabf2ce0f5 Wide string printing fix (#7647)
* Add `psW` cmd to print 32 bit char strings
* Skip up to 3 leading NULLs on wide strings
2017-06-01 16:49:44 +02:00
pancake
ab79aa015f Oops :( 2017-06-01 13:19:49 +02:00
pancake
cc2e4688ec Fix last covs 2017-06-01 13:16:55 +02:00
pancake
9632f82ee9 Implement dbta to show an ascii-art representation of the stack backtrace 2017-06-01 13:04:55 +02:00
pancake
8af066c9ae Fix uaf 2017-06-01 12:59:39 +02:00
Ren Kimura
49e97445cb Removed tabs (#7652) 2017-06-01 12:04:01 +02:00
Ren Kimura
3dcd3b79bd Renewed dsb command for new session format (#7651) 2017-06-01 10:47:12 +02:00
pancake
90ffb5463d Fix graph lines colors in the white theme 2017-06-01 02:58:59 +02:00
Roi Martin
946b35f967 Fix issue #7311 2017-05-31 20:34:20 +02:00
Sven Steinbauer
98bd7e7dd5 Fix coverity deref NULL x (#7642) 2017-05-31 16:49:29 +02:00
SkUaTeR
dc7914644e Meson improvements 2017-05-31 13:38:47 +02:00
pancake
081e88231a Fix build with musl libc 2017-05-30 20:05:48 +02:00
SkUaTeR
0596c1c08e Meson shlr libs 2017-05-30 18:38:19 +02:00
pancake
f6d58c6fad Fix flag renaming issue 2017-05-30 16:07:10 +02:00
radare
f0e1d77a40 Fix the DEX crash regression with invalid method names (#7635) 2017-05-30 15:44:57 +02:00
pancake
7d1273d09e Do not load BSS in debugger mode (fixes regression in Linux debugger) 2017-05-30 14:52:39 +02:00
Francesco Tamagni
edb46a8495 Workaround capstone bug for mips64 disassembly (#7632)
* Add asm.cpu=64v2 to support modern mips64
* Enforce 64 bits for 64v2 cpu
2017-05-30 13:33:40 +02:00
Sven Steinbauer
4dd740ebf2 Add rasm -r option honor flags and seeks 2017-05-30 13:19:21 +02:00
Xiangyu Zhu
1be1050160 Fixes output for izj, imj and icj (#7633) 2017-05-30 11:23:59 +02:00
pancake
f8373b46d6 More null termination in rcons 2017-05-30 11:01:33 +02:00
pancake
c89f79d7af Fix r_flag_rename 2017-05-30 01:07:43 +02:00
pancake
1f04fb14c4 Fix format string for 32bit machines 2017-05-29 23:48:33 +02:00
Ayman Khamouma
33b1659104 Make pds/pdsf show comments if asm.comments is set 2017-05-29 23:15:24 +02:00
pancake
5c30afdcce Fix #7534 - Complete ae?? help 2017-05-29 23:08:38 +02:00
SkUaTeR
080416d09e Fixed meson build for msvc 2017-05-29 22:35:59 +02:00
Xiangyu Zhu
6fed9abe5b Fix #7503 - Fix commands like isrzM*
* modify `ia[*jq]`, only look at last char of first word
2017-05-29 22:35:17 +02:00
Rene Laemmert
912103b683 Fixes renaming a flag autocomplete issue and #7203 (#7626) 2017-05-29 22:29:37 +02:00
pancake
d6642b10dd Fix last covs 2017-05-29 21:50:57 +02:00
Srimanta Barua
0da8862a83 Add read reg/mem to gdbserver (#7625)
* bug fixes in client, and adding kill signal for server without multiprocess support
* commented out currently unnecessary packets sent by client
* Corrections to client kill signal code
* More functionality for gdbserver. Read regs and memory
2017-05-29 21:36:42 +02:00
Erik Post
75d2411f3f Fix typo: 'palette' (#7627) 2017-05-29 21:33:44 +02:00
pancake
5a90a375db Update cdb.h to make skuater happy 2017-05-29 21:23:19 +02:00
pancake
4ee963ee98 Fix some clang-analyzer issues 2017-05-29 15:01:11 +02:00
pancake
d9bf4bd494 Fix overlay size issue 2017-05-29 14:59:58 +02:00
Khairul Azhar Kasmiran
ea89778fca asm.leahints cmts are now normal cmts (#7621) 2017-05-29 14:22:16 +02:00
Sajjad Pourali
0ad85c3af1 Fix incorrect empty array compersion in armass64.c (#7622) 2017-05-29 14:18:55 +02:00
pancake
5c254c089a Fix memleak 2017-05-29 14:16:05 +02:00
pancake
177a9f3e6e Fix #7561 - Update help message for pi? 2017-05-29 14:09:45 +02:00
pancake
1b854be75e Add file.lastpath to fix regression in projects using malloc:// 2017-05-29 14:02:50 +02:00
pancake
22cde23367 Generate r_userconf.h with Meson too 2017-05-29 13:06:10 +02:00
pancake
5bf37c2bf7 Update sdb from git to make msvc happy 2017-05-29 12:44:04 +02:00
pancake
78ecad3d3b Fix dmi honoring dmm on Mac debugger 2017-05-29 11:45:13 +02:00
pancake
a504ece143 Support square pixels, cursor and scroll in prc, available in VPP, add hex.pcols 2017-05-29 04:36:34 +02:00
pancake
42e27a4aac Fix #7599 - Implement prc command to print colorful bytes 2017-05-29 03:45:02 +02:00
pancake
608bfe6b5b Fix #6596 - aeim doesnt breaks projects anymore
file.path is not polluted with invalid values after opening malloc:// files
2017-05-29 03:01:39 +02:00
pancake
5687da18f9 Fix #7383 - Case insensitive grep with ~+ 2017-05-29 02:52:53 +02:00
Khairul Azhar Kasmiran
40f2126da6 Added asm.cmtoff to control showing of offset comment (#7609) 2017-05-29 02:44:45 +02:00
Ayman Khamouma
a5a6b25d27 Implement dmp command for Linux 2017-05-29 02:44:11 +02:00
pancake
232bbabd75 Fix #7456 - Warnings in r2 -nn ELF
- Order in elf keys matter, so the sdb change broke it, its good now
- pf had a wrong buffer check that was making a valid pf invalid
2017-05-29 02:31:28 +02:00
pancake
08f131198f gp64 asm.cpu forces asm.bits internally 2017-05-29 01:44:32 +02:00
pancake
f26213074b Rename Tp to L command to be consistent with iL and oL
- More to come
2017-05-29 01:37:54 +02:00
pancake
40b87865a8 Fix listing methods of classes in Java bins 2017-05-29 01:18:04 +02:00
pancake
d8fff83c2e Aim to fix UAF in #7521 - r2 -d on mac 2017-05-28 23:38:14 +02:00
Álvaro Felipe Melchor
64c11b5de8 Fix #7573 - override shdr with phdr symbols (#7612)
Those whose offset are 0 are skipped to avoid overlapping
2017-05-28 23:10:35 +02:00
pancake
ba6dce4d73 Add REgg as dependency of RDebug 2017-05-28 22:38:10 +02:00
Xiangyu Zhu
bc3555b833 Modify RLang plugins for Py2/py3 support
* Add alias field
* use RTLD_LOCAL
2017-05-28 01:50:08 +02:00
pancake
02b0a9d570 Fix null deref in pf for reg 2017-05-28 01:47:37 +02:00
pancake
765c0f2f72 Fix the r2 -d segfault on mac 2017-05-28 00:40:09 +02:00
Sajjad Pourali
5d2b961a72 Remove unnecessary comparison (#7604) 2017-05-27 13:08:45 +02:00
pancake
e6ceba4cc2 Fix #7521 - Segfault in r2 -d on mac 2017-05-27 13:01:25 +02:00
Sajjad Pourali
929a622cb0 Fix mac build with gcc 7.1 2017-05-27 12:50:20 +02:00
pancake
d17ba081c1 Honor anal.strings for aae 2017-05-27 12:41:16 +02:00
pancake
0b84978a8b Fix drx Debug Register set on XNU 2017-05-27 11:37:20 +02:00
pancake
d6189ae0c9 Do not escape \u in r_str_escape 2017-05-27 04:17:00 +02:00
pancake
20f7ac66cc Bring back drx on XNU, buggy but at least does something 2017-05-27 03:57:30 +02:00
pancake
5ca8e5e24c Refix /j for the 3rd time, time to add a test 2017-05-27 03:26:12 +02:00
Stanisław Drozd
e9c9221627 Fix uninitialized vars issue in p- 2017-05-26 11:30:31 +02:00
pancake
0e841750e7 Fix build 2017-05-26 03:07:22 +02:00
Khairul Azhar Kasmiran
8b61adb5aa Hide str flag if unchanged and string shown + asm.noisy 2017-05-26 02:56:47 +02:00
pancake
6758e3753d Remove configure-plugins dependency for the make meson 2017-05-26 02:43:53 +02:00
Ayman Khamouma
4e94a1adc7 Make drr honor scr.color 2017-05-26 01:19:35 +02:00
Srimanta Barua
06aae3080e Added kill signal for gdb client 2017-05-25 15:41:07 +02:00
armijnhemel
12275461d0 Set flag to also demangle flags 2017-05-25 15:40:50 +02:00
pancake
582863189d Update sdb from git 2017-05-25 15:14:23 +02:00
pancake
3a262ba5d7 Fix file containing (null) issue in dwarf 2017-05-25 15:14:18 +02:00
Ren Kimura
83dadbc9aa Clean up snap code. (#7592)
* Clean up snap code.

* Add malloc checks
2017-05-25 13:48:36 +02:00
Giovanni
715884816d improvements of asm.pseudo for x86 (jmp,test,cmp,etc..) (#7589)
* improvements of asm.pseudo for x86 (jmp,test,cmp,etc..)
* jne/jeq optimized and fixed swap
2017-05-25 01:09:34 +02:00
Giovanni
1602fa8025 Now working PPC pblr and fixed b/bc jumps (#7588) 2017-05-24 16:31:07 +02:00
pancake
c086364c4a Fix infinite loop in p- with r2 -- 2017-05-24 13:48:09 +02:00
pancake
e0d116780c Fix possible null deref in nro 2017-05-24 13:09:20 +02:00
Ren Kimura
31ab3c998f Fix #7585 - Compile warnings 2017-05-24 12:17:45 +02:00
Ayman Khamouma
29aae4dd9b Fix multiple plugins loading support (#7584) 2017-05-24 12:17:20 +02:00
Ayman Khamouma
14f93d72d9 temporarly only check handler when using it (#7583) 2017-05-24 00:33:43 +02:00
pancake
4bd1d0d9cd Introduce the anal->cmdtail and enhance anal.jmptbl with it
* Reduce false positives of switch tables detection
* Add flags for the jmptable, the cases and the bb using it
* cmdtail introduces some recursivity problems that may be fixed using the api more c
* Increased CMD DEPTH from 10 to 100
2017-05-23 23:55:22 +02:00
pancake
1661a3d39d Optimize asm.slow with bin.relocs 2017-05-23 23:54:11 +02:00
Stanisław Drozd
6be7cc1f90 Fix a simple bug in r2pm; make r_bin_get_size() behavior more intuitive (#7582)
* r2pm: remove "set -e" to fix the later gmake check
* bin.c: return 0 on missing object in r_bin_get_size()

When running "radare2 --", commands like iZ  would normally print
UT64_MAX (0xfff... or -1) when o is NULL, which seems misleading.
Besides, the function's return value is unsigned anyway.
2017-05-23 23:00:33 +02:00