Lennart Braun
a6ec3b6d89
Fix regression with capstone 3 ( #7757 )
...
The option CS_OPT_UNSIGNED is part of capstone-next and not available in capstone 3.
It is used in radare2 since 0b4eb17
.
2017-06-16 20:44:40 +02:00
ZHANG ZHUO
1b14b1724b
use r_str_newf to replace snprintf
2017-06-15 22:15:41 +02:00
ZHANG ZHUO
bc05187068
remove ugly NULL syntax
2017-06-15 22:15:41 +02:00
ZHANG ZHUO
e9da2b2ca0
reindent emit_arm.c
2017-06-15 22:15:41 +02:00
ZHANG ZHUO
1dde4782a7
handle escape string in arm assembel
2017-06-15 22:15:41 +02:00
pancake
0b4eb1740c
Update the capstone-x86-unsigned patch
2017-06-15 10:07:20 +02:00
propaganda
b3ee74dacd
fix cs_open()-without-cs_close() memory leak in disassemble() by uncommenting //cs_close()
2017-06-15 09:06:22 +02:00
xarkes
1b0497cb0b
Fixed windows segfault
2017-06-15 14:11:50 +08:00
Srimanta Barua
7631d38c4a
Fix typo in debug.c
2017-06-15 13:48:49 +08:00
pancake
5c98293b20
Load bin-format specific scripts from home
...
* mkdir -p ~/.config/radare2/rc.d/bin-mach064
* echo ?E Hello Mach0 > ~/.config/radare2/rc.d/bin-mach064/hello
2017-06-15 00:36:39 +02:00
pancake
a28166fca9
Fix stack overflow when asm.nbytes > 32
2017-06-15 00:06:33 +02:00
pancake
cd33acbd51
Implement !- and !-* commands to clear command history
2017-06-14 17:31:57 +02:00
Srimanta Barua
fe6372339d
Corrected gdbserver register-setting
2017-06-14 15:38:10 +02:00
Srimanta Barua
e5e860a3ea
Added loading of offsets
2017-06-14 15:38:10 +02:00
Srimanta Barua
683e115ee5
Moved r_debug_get_baddr to debug API
2017-06-14 15:38:10 +02:00
Zohn_Z
76f0ce7c9f
Several fixes for ragg2
...
* fixed some bugs in rcc_pushstr in egg_lang.c
* fix bugs when strings within ',' and strating with non-zero char
* fix some error fixes
* fix the segment fault when calling functions with arguments
* add support for directory in include
* make some little changes
* add support for include and alias
* add some debug eprintf
* fix wrong label bugs in "while" syntax and rename some label
* fix odd syntax in "while" and "if"
* rename the labels
* add support for if\-else
* make some little changes for pretty print
* take a snapshot before writing confusing mathop
* finish mathop
* delete some unnecessary code in if-else frame to bypass test
* reindent all the thing
2017-06-14 15:35:29 +02:00
xarkes
46deac0dde
Fixing appveyor build ( #7735 )
2017-06-14 13:45:48 +02:00
pancake
f91cd186b7
Fix static build
2017-06-14 10:55:30 +02:00
Francesco Tamagni
4eab2a8553
Fix CID 1368158 ( #7731 )
...
by keeping the ap argument read-only and use a copy instead, so both copies can be safely ended before returning
2017-06-13 13:45:16 +02:00
pancake
f62df0d745
Add flow2 to all color themes
2017-06-13 10:38:38 +02:00
pancake
fef6618c29
More fixes for the white theme
2017-06-13 10:08:50 +02:00
pancake
1f1fb38b2a
Fix | and |H suffix in sandbox mode, happify the webserver
2017-06-12 23:34:51 +02:00
pancake
752a1d6e27
Add missing socket/serial.c
2017-06-12 23:02:32 +02:00
pancake
6c37a9aa10
Add serial support in RSocket for gdb:///dev/ttyUSB0:9600
2017-06-12 22:25:58 +02:00
pancake
966b6475c4
Fix warnings in rcons and update www-m
2017-06-12 17:20:34 +02:00
pancake
6ad2ced0fe
Remove wtf ia* call from cconfig
2017-06-12 16:37:01 +02:00
pancake
00e8f20547
Fix #7727 - undefined pointers and out of band string access fixes
2017-06-12 15:50:52 +02:00
Francesco Tamagni
c17c725ebb
Fix crash in r_cons_printf_list and simplify logic ( #7725 )
2017-06-12 12:38:00 +02:00
Khairul Azhar Kasmiran
77cba1dfee
Using r_str_escape for anal strings
2017-06-12 11:37:28 +02:00
pancake
54150fa3db
Fix last covs
2017-06-12 11:28:54 +02:00
pancake
65000a7fd9
Fix #7723 - crash in ext2 GRUB code because of variable size array in stack
2017-06-12 09:57:30 +02:00
Sajjad Pourali
ba25be4934
commented unused variable (libr/anal/pin.c) ( #7714 )
...
* commnet unused variable (libr/anal/pin.c)
* Create pin.c
2017-06-11 02:13:19 +02:00
Srimanta Barua
d81f369fa1
Fix gdb client packet size ( #7703 )
...
* Fixes for packet too long
* Proper escaping in packets and run-length encoding
* Removed old cache code
* Removed currently unnecessary code from client initialization
* Preparation for customized packet sizes
* Better packet-size configuration
* Minimum packet size (for AVR)
* mem_write too
* Corrections to packing code
* Was overcompensating for AVR. (pkt_sz = 16 => read_mem_len = 8)
2017-06-11 02:12:44 +02:00
pancake
429740e5a1
Implement aerR and cmd.esil.ioer
2017-06-10 20:40:16 +02:00
pancake
7512396ab5
Fix dblfree introduced in last esil cleanup
2017-06-10 18:53:20 +02:00
pancake
37e08489bd
Fix build and implement ?eg for gotoxy and ?ec for column
2017-06-10 18:37:56 +02:00
pancake
0ded60cd0c
Implement cmd.esil.todo
2017-06-10 18:00:07 +02:00
pancake
dfe3cb8305
Honor asm.flags in prc
2017-06-10 17:47:26 +02:00
Andry
f81e0a7fdb
grep functions refactoring ( #7672 )
2017-06-10 12:39:04 +02:00
Ren Kimura
487b305a8d
Changed finding logic of session key ( #7719 )
2017-06-10 12:38:23 +02:00
alvarofe
7af491dda5
Fix build
2017-06-09 21:35:38 +02:00
pancake
470c183010
Initial work towards supporting a visual ESIL debugger VpOd
2017-06-09 19:12:20 +02:00
pancake
aad2d70552
Fix some warnings
2017-06-09 03:22:18 -11:00
Roi Martin
d9202106f4
Fix hex column resize in visual mode ( #7712 )
2017-06-09 15:58:49 +02:00
pancake
8da5d2b295
Fix esil pin implementation using r2 commands
2017-06-09 02:50:28 -11:00
pancake
6e1490f747
Minor help message fixes
2017-06-09 02:07:05 -11:00
pancake
1ae19361ea
Remove debug printf in r2pipe.c
2017-06-09 11:26:53 +02:00
alvarofe
abe88502c9
Return exports and import when found error
...
This improves some pe like CoST.exe one
2017-06-08 18:24:36 +02:00
alvarofe
82fc246f1d
Resotre hook_mem_write when asm.emu activated
2017-06-08 18:20:48 +02:00
pancake
d5ede2bf44
Party reverts f85bc674b2
.
2017-06-08 04:22:50 +02:00
pancake
4be4af58fd
Fix command injection vulnerability in dex methods
2017-06-08 04:15:38 +02:00
pancake
8c80c2a9bb
Fix null deref introduced in previous commit
2017-06-08 02:39:30 +02:00
pancake
f85bc674b2
Fix #7698 - UAF in r_config_set when loading a dex
2017-06-07 23:51:13 +02:00
Ayman Khamouma (ak42)
779147011d
Fix #7655 : continue on disabled breakpoints ( #7697 )
2017-06-07 21:26:03 +02:00
Rene Laemmert
e1cfd1cc90
Use core->anal->fcns instead of fcns in core/canal
2017-06-07 18:58:50 +02:00
Sajjad Pourali
0967a976a5
remove unused variable + change type of typename ( #7696 )
2017-06-07 18:57:54 +02:00
Ayman Khamouma (ak42)
582e4da71d
Improve number detection for disassembly coloring ( #7694 )
2017-06-07 18:55:38 +02:00
pancake
0037ec0b78
Minor tweaks for this hexagon support
2017-06-07 11:54:00 +02:00
pancake
39542af604
Initial support for the Hexagon CPU (ripped from a binutils fork from 2013)
...
https://www.spinics.net/lists/linux-hexagon/msg00363.html
2017-06-07 11:43:24 +02:00
pancake
87ba2bb95f
Support HEXAGON cpu type in ELF
2017-06-07 11:06:59 +02:00
Álvaro Felipe Melchor
2cc456fc76
Fix function detection with NOP ( #7691 )
2017-06-07 01:53:59 +02:00
Rene Laemmert
3b051758eb
aab now executes direclty also added aab* ( #7688 )
2017-06-06 18:28:43 +02:00
Ren Kimura
8c789b5be5
Fixed overflow of page_off ( #7687 )
2017-06-06 16:21:55 +02:00
Roi Martin
8f5929e44d
Check zoomsz value
2017-06-06 10:45:01 +02:00
Roi Martin
a1388159c8
Fix hexdump offset in zoom mode
...
Add argument zoomsz to r_print_hexdump(). It allows to specify the real
size of each byte in the hexdump.
2017-06-06 10:45:01 +02:00
Ayman Khamouma (ak42)
a6259d28c6
invert offset color for traced instructions ( #7685 )
2017-06-06 10:00:57 +02:00
sroxy
7e3072d8f4
mbn: fix image type check ( #7684 )
...
aboot.mbn isn't recognized by r2 because the check is too strict,
valid values for load_index (aka image_id) start from 1, aboot.mbn is using 5.
Fixes #7681
2017-06-06 09:52:17 +02:00
Lowly Worm
414608ff25
use the is_empty api call for peek
2017-06-06 00:27:50 -04:00
Lowly Worm
e4652c0319
add r_stack_peek to the stack api
2017-06-06 00:13:51 -04:00
Tzaoh
991a1b8dd9
Replace dh for dL ( #7682 )
...
* Replace dh for dL
* Changed places where 'dh' cmd was used.
2017-06-05 14:45:45 +02:00
pancake
90480d325b
Fix last covs
2017-06-05 13:23:39 +02:00
pancake
6a9b0430db
Fix disasm crash in r2_ir_dalvik_disassemble
2017-06-05 12:42:35 +02:00
Srimanta Barua
ad764839b2
Initial breakpoints, step, and continue for gdbserver. Plus *started* talking to GDB ( #7679 )
...
* GDB doesn't crash when connecting to us anymore
* Added initial support for breakpoints, step, continue to gdbserver
2017-06-04 22:22:01 +02:00
Ayman Khamouma (ak42)
3fd5112d95
add dsuir command for regex match ( #7675 )
2017-06-04 12:10:50 +02:00
Adrian Herrera
85702da1fe
Make the "ag" command work with "loc" functions ( #7673 )
2017-06-04 01:06:48 +02:00
Roi Martin
4d93dcc78d
Minor style changes in autocomplete functions
2017-06-03 22:12:29 +00:00
Andry
9e253f5867
Fix #7373 add '~str~?' support ( #7669 )
2017-06-03 22:54:22 +02:00
Lennart Braun
e1dc11bccd
Fix regression with capstone 3 ( #7666 )
...
The constant CS_MODE_MIPS2 is introduced in a patch for capstone-next
(added in 1c6ee8dd3a
) and will not be available in capstone 3.
2017-06-03 18:18:05 +02:00
Duncan Ogilvie
8dbc4db750
Fixed unreleased lock in r_core_cmd
2017-06-03 18:02:30 +02:00
Roi Martin
e8a6550a4e
Minor refactoring
2017-06-03 14:43:31 +02:00
Roi Martin
404f5bdde2
Rewrite autocompleteProcessPath()
2017-06-03 14:43:31 +02:00
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