Commit Graph

15408 Commits

Author SHA1 Message Date
pancake
b6958c922e Fix #8139 - Fix null deref in format string in the LANAI disassembler 2017-08-07 12:02:50 +02:00
Ren Kimura
7ce197eb44 Add initial support for hw watchpoint (#8132)
* Add initial support of hw watchpoint

* Fixed parse bug

* Fixed rwx str
2017-08-06 05:27:01 +02:00
pancake
b61b51e2a4 Implement WIP agr for aggi and add agg to help 2017-08-06 04:03:43 +02:00
Fangrui Song
a3bcc4c35b Support pi when asm.addrbytes > 1 (#8130) 2017-08-06 03:28:23 +02:00
Khairul Azhar Kasmiran
19fa6abbb8 asm.strenc: guess whether string is utf32le (#8127)
* asm.strenc: guess whether string is utf32le

* Don't guess utf32le if there is char > 0x10ffff
2017-08-06 03:08:17 +02:00
Isaac
e82a40ac78 Implement not instruction in the x86.nz assembler 2017-08-06 03:07:55 +02:00
pancake
e358a3fe90 Fix arm64 opcode parser in armass64 2017-08-06 03:01:57 +02:00
Marc
964e0819ad Fix some COV issues in DEX 2017-08-05 12:46:13 +02:00
Srimanta Barua
ce94f8d711 Reading xml target description and parsing into r2 reg profile (#8124)
* send qXfer packet

* reading file includes

* parse

* r2-indent

* added missing profile = tmp2;
2017-08-05 12:22:02 +02:00
Fangrui Song
f91e3d259c Add asm.addrbytes eval config var to make one vaddr unit use more than 1 bytes (#8121)
* Add `asm.addrbytes` eval config var to make one vaddr unit use more than 1 bytes

* Use `asm.addrbytes` in anal/disasm
2017-08-05 12:20:17 +02:00
Srimanta Barua
b9695773ce added =!detach, and replaced eprintfs with io->cb_printf (#8125)
* added =!detach, and replaced eprintfs with io->cb_printf

* keep error in eprintf
2017-08-04 19:18:43 +02:00
Rene Laemmert
261675ef3b Make old gcc happy again (#8128) 2017-08-04 19:00:02 +02:00
xarkes
3da3958db8 Windbg FIX #7660 + typos (#8126) 2017-08-04 17:49:41 +02:00
pancake
e7086d0253 Fix s.. 2017-08-04 00:58:25 +02:00
josediazfer
74a22ebe07 Changes for windows (memory map, memory modules, radare commands with pipe) (#8109)
* Improvements for windows
FIX: All the memory regions of the process are shown (previously only the modules were shown).
FIX: Before only the 64-bit modules were shown, adding the flag TH32CS_SNAPMODULE32 also shows the 32bits.
FIX: In Windows 7 the stat () function fails if the temporary path ends with slash.
The r_core_cmd_pipe () function is implemented.

* FIX: Changes for windows (memory map, memory modules, radare commands with pipe) #8109
2017-08-03 16:46:06 +02:00
xarkes
3d681b0fe5 Renamed windbg plugin (#8117) 2017-08-03 14:58:39 +02:00
pancake
e0f0c89783 Fix #8115 - PoC for the Visual Split mode 2017-08-03 14:52:59 +02:00
Willi Ballenthin
73e8440582 Fix #8114 - dockerfile: use node v8, better install npm 2017-08-03 14:04:03 +02:00
pancake
97a38e6eea More tweaks for the jemalloc support 2017-08-03 13:56:45 +02:00
pancake
a7f0053dd7 Add CoreBind.cfggeti to fix w32 build 2017-08-03 13:39:05 +02:00
pancake
e913c770f5 Fix build 2017-08-03 13:27:11 +02:00
javierptd
edfd37e7e4 first PR heap jemalloc analysis 2017-08-03 13:08:21 +02:00
pancake
ab9957640c Fix windows build 2017-08-03 12:34:50 +02:00
Fangrui Song
81bc02f375 Fix r_strbuf_setf when the length of returned string >= 1024 (#8112) 2017-08-03 11:29:36 +02:00
pancake
48f1bb0842 Implement loop instruction in the x86.nz assembler 2017-08-02 23:57:23 +02:00
pancake
17752cdb52 Fix a memory leak found by coverity 2017-08-02 21:42:42 +02:00
Jonathan Burnham
59c5a49623 Fix #7774 - Fix xrefs when saving/loading projects 2017-08-02 21:32:03 +02:00
xarkes
e3ee2fca64 PDB Autoloading when debugging 2017-08-02 15:58:59 +02:00
Francesco Tamagni
221194b697 Add ESIL for few ARM instructions and fix minor issues (#8107)
* Add ESIL for few ARM instructions and fix minor issues
* smmla, smmlar, umull, mls, mla, mvn, bfi, bfc

Fixes:
- ldm index displace
- crop 32 bit math results to 32 bits
- crop 32 bit addresses to 32 bits

* Fix indentation issues
2017-08-02 15:55:46 +02:00
Khairul Azhar Kasmiran
1eecc83b9c asm.strenc: tighten up guess for utf16le string (#8108) 2017-08-02 15:55:00 +02:00
leberus
f3d11405e7 Fix debug for Linux 2017-08-02 14:49:56 +02:00
Alex Kornitzer
bfbdb943c8 mdmp: Added custom binary info (#8104)
Updated info so that it will deal with mdmp's extra info fields
2017-08-02 14:47:08 +02:00
Srimanta Barua
74c80f9e09 min-checks on gdb packet size (#8106) 2017-08-02 14:14:11 +02:00
pancake
bf8651454b Avoid another divbyzero in gdb code 2017-08-02 13:28:07 +02:00
xarkes
567b5837b0 Moving /MT modifier to release build (#8103) 2017-08-02 13:13:25 +02:00
Srimanta Barua
7b5de5cb51 fix divide by zero (#8100) 2017-08-02 12:13:28 +02:00
Sven Steinbauer
c7b3a1e2e7 Fix #8008 output for register offset with register (#8102) 2017-08-02 12:11:35 +02:00
Srimanta Barua
f6f5199ef6 let gdbserver select thread (#8101) 2017-08-02 12:10:43 +02:00
Ben Gardiner
3aff806fcb Fix #8095 rasm2 x64 bswap issue #8095 (#8096) 2017-08-02 00:54:34 +02:00
Sven Steinbauer
dcad605335 Allow for 32bit only ops in x86 (#8092) 2017-08-01 18:22:20 +02:00
Dennis Goodlett
66b5808475 fix segfault in vsnprintf on 32 bit systems examining a PPC ELF (#8075)
* fix segfault in vsnprintf on 32 bit systems 

On a 32-bit x86 computer, examining a PowerPC ELF with the "aa" command caused a segfault in vsnprintf. 

The %llx  (PFMT64x) format attempts to get the next 64 bits from the stack. This will consume the cmask32 and ARG(0) values. The following "%s" will cause a segfault if the next 32 bits is not pointing to readable memory.

I doubt this is the best fix. Maybe libr/include/r_types.h should be changed? You guys know better.

* cast instead of duplicating code

* fix white space
2017-08-01 18:20:39 +02:00
Khairul Azhar Kasmiran
1820908da3 asm.strenc: guess whether string is utf8 (#8094) 2017-08-01 18:18:47 +02:00
Sven Steinbauer
1426a73032 Add move, bal, bgezal, and bltzal mips instructions (#8090)
* Add `move`, `bal`, `bgezal`, and `bltzal` mips instructions

* Only divide immediate on branch ops
2017-08-01 18:17:33 +02:00
pancake
78ec2d0340 Implement rafind2 -i to identify binaries 2017-08-01 15:27:11 +02:00
pancake
9bdce20d83 Negate those align checks 2017-08-01 15:06:00 +02:00
pancake
16304fc9a4 Implement data align restrictions for analysis and esil (arm, mips..) 2017-08-01 14:51:29 +02:00
Anton Kochkov
e52447c9ea NEC V850 - Initial ESIL support (#8082) 2017-08-01 14:32:52 +02:00
Marc
409232f7e4 Fix code style 2017-08-01 12:53:24 +02:00
pancake
0d04abce48 s-- and s++ accept a number as argument to half the seek 2017-08-01 12:18:16 +02:00
Srimanta Barua
0f690c7997 return tid after continue (#8079) 2017-08-01 11:40:43 +02:00