Commit Graph

8615 Commits

Author SHA1 Message Date
Fangrui Song
95c4f1ffb9 Remove r_io_buffer* (#11239)
There are already r_io_cache* (r_io_t::cachemode) and r_io_desc_cache* (r_io_t::__cache). There is no place for this extra cache layer.
2018-08-27 00:51:44 +02:00
pancake
ff08c059da Kill the isThumb checks (s110-arm-16 half converted) 2018-08-26 23:08:44 +02:00
Jacob Rosenthal
3afabed74d arm thumb syscalls use aop.val instead of a register 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
Fangrui Song
97e6808335 Simplify af- & r_anal_fcn_del (#11244)
r_anal_fcn_del should not treat UT64_MAX differently.
2018-08-26 19:15:10 +02:00
Fangrui Song
f0e7f535c0 Fix memleak in r_core_get_boundaries_prot call sites (#11265) 2018-08-26 18:25:34 +02:00
Fangrui Song
a8461613d1 Make wc- invalidate all (fully or partially) overlapping cache (#11241)
Fix the handling of [to] in wc- [from] [to]
2018-08-26 17:38:11 +02:00
sivaramaaa
aa435d9a57 Fix #11211, Change afvn syntax to [new_name] [old_name] (#11233) 2018-08-26 17:35:04 +02:00
Fangrui Song
61cc81e075 Fix "afcf" without arguments 2018-08-26 16:53:44 +02:00
Fangrui Song
ff0bc4aa3e Add $ command names beside case labels and update ?$? 2018-08-26 16:09:01 +02:00
Fangrui Song
019491bcbc Fix RStrBuf memleak in afta (#11251) 2018-08-26 14:16:14 +02:00
Fangrui Song
f54be0a086 Fix memleak in aat (#11257) 2018-08-26 14:10:04 +02:00
Fangrui Song
764a3ccbcb Fix fatmacho tests
The map [0, r_io_desc_size) (if exists) should have the lowest priority (be inserted first) so we move it here from the bottom.
2018-08-26 02:02:02 +02:00
Fangrui Song
d3442c3897 Fix binheap comparator & omp
This fixes the 3 XX tests in 9280cabb15
2018-08-26 02:02:02 +02:00
Vanellope
286387ff57 Fixed the resizing issue of panels when the canvas is resized. (#11242)
* Fixed the resizing issue of panels when the canvas is resized.

* fixed meaningless code
2018-08-26 01:54:22 +02:00
Vanellope
7fde5b1582 Fixed some coverity issue (#11243) 2018-08-26 01:54:08 +02:00
Lowly Worm
a2a7b911de add afbc for exposing a "colorize" api to bbs; addresses #8588 (#11224)
* add afbH for exposing a "highlight" api to bbs

* fix comments from pancake/xvilka

* fix indent

* fixup help text for afbh

* rename afbh->afbc

* fixup offset of color
2018-08-25 11:11:12 +02:00
Jacob Rosenthal
a0afac029e Fix #11223 -aeim.fd use sdb instead of flagspace as database (#11225) 2018-08-24 15:56:16 +02:00
Rene Laemmert
d28fa768f3 Removed access to r_io_section in core (#11222) 2018-08-24 15:55:04 +02:00
Paul I
b5044de59b Fix agw command (#11217) 2018-08-23 18:35:24 +02:00
pancake
cba35157c6 Fix leak in RAnal.ws and make Vbe work 2018-08-23 15:07:21 +02:00
pancake
7b046e5f4a Fix crash reported by Maijin
> r2 -qc "2aa ; axfj @ 0x100001321" /bin/ls
2018-08-23 15:05:38 +02:00
pancake
095f28dfdf Fix #11215 - Ve is already in Vbe 2018-08-23 14:46:54 +02:00
Khairul Azhar Kasmiran
6436cc5934 Fix rabin2 -ee paddr (#11210) 2018-08-23 14:33:26 +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
Vanellope
7ab842ddbf Autocompletion for afcf (#11209) 2018-08-23 13:04:40 +02:00
pancake
9ff89a4370 Add Visual Graph cursor mode to choose (move vs pan) actions
* c    changes visual graph cursor value
* hjkl moves nodes or pans the canvas
* HJKL means faster scrolling
2018-08-23 12:50:17 +02:00
pancake
79a896286b Fix #11204 - VVr toggles jmp/lea hints like Vr does 2018-08-23 11:56:56 +02:00
Sepтем
2aaab8b56c Use RAsm.Op.get_asm() in RCore.Anal.has_refs() 2018-08-23 10:37:23 +02:00
exokortex
20e1be2e95 provisional fix for buffer out of range in ds_print_meta_infos (#11203) 2018-08-22 22:52:25 +02:00
exokortex
49b9ffcf9d Remove random change of buffer len that results in index out of bounds in subsequent code (#11198) 2018-08-22 17:15:24 +02:00
Florian Märkl
64e3b63b3f MSVC RTTI class name demangling (#11171)
* Add r_anal_rtti_msvc_demangle_class_name()
* Add avrD command
2018-08-22 13:15:28 +02:00
rene
045dae8406 Fixes pdi, hellocxx test, cmd_rop, helloworld-gcc-elf, elf-riscv64 2018-08-22 11:43:05 +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
Fangrui Song
f7341d1949 cmd_meta: add command names beside case labels (#11182) 2018-08-22 11:17:08 +02:00
radare
bc70bc25eb
Initialize RAsmOp and update acode->bin after hex (#11178) 2018-08-22 03:28:44 +02:00
Fangrui Song
d8a9bfba35 panels.c: fix -Wunused-variable (#11176) 2018-08-22 03:12:53 +02:00
Vanellope
fc87b46e21 Cursor is supported in the Zoom mode (#11172) 2018-08-21 23:45:13 +02:00
Andry
8649239e80 memleaks after sdb_querys calls fixed 2018-08-21 23:44:52 +02:00
Andry
f8826a492c Fix superfluous seek on error while -escr.interactive=0 (#11166) 2018-08-21 11:42:24 +08:00
vane11ope
4016763f54 Tab works for the zoom mode that rotates panels to be maximized 2018-08-20 23:03:09 +02:00
vane11ope
506c20e790 Refactoring positions to manipulate them later for many usages 2018-08-20 23:03:09 +02:00
Andry
3e678f57dd Fix #11145. Additional error handling (#11160) 2018-08-20 11:48:20 +02:00
Paul I
620affc89e Fix some warnings (#11152) 2018-08-20 14:52:02 +08:00
Vanellope
9629b53f36 Zoom Mode is supported (#11156) 2018-08-19 23:06:34 +02:00
sivaramaaa
19e456821b Initial work on Constrained types (#11144)
* Intial Work on Constrained types

* Use r_strbuf instead of fixed size buffers in afta
2018-08-19 23:05:54 +02:00
pancake
26d50c31da Fix memleaks in RBin 2018-08-19 16:39:55 +02:00
radare
0a16f30ba1
Implement om-.. (#11148) 2018-08-19 16:39:42 +02:00
Fangrui Song
dcf7dc74af Optimize sdb_const_anext and sdb_array_contains (#11139)
time (repeat 10 ~/Dev/Bin/radare2/release/binr/radare2/radare2 -p t1 -c
'' -Q a.out) => 1.35s -> 1.28s
2018-08-19 15:51:27 +02:00
Vanellope
0622edeb4f Vertical resizing is supported in Panels (#11146)
* resize vertically with the temporal command t
2018-08-19 15:50:54 +02:00
morbith-dqtz
fcb5a3e07f Fix offset to main_arena in libc6-2.27 x64_32 (tested in debian and kali 32 bits) (#11147) 2018-08-19 15:50:31 +02:00
Rafael Rivera
8128b0acb3 Fix uninitialized local causing rtc failures (#11136)
* Fix uninitialized local causing rtc failures

* Moved initialization per review

* Moved local per review

* Cleaned up json separator local
2018-08-19 15:11:23 +08:00
Khairul Azhar Kasmiran
374a4800e8 iee: apply rva to every use of hvaddr (#11130) 2018-08-19 05:58:54 +02:00
pancake
87a360f8ed Deprecate rop.nx and just use the search.in rules 2018-08-18 15:44:00 +02:00
Jacob Rosenthal
39f8c4cef5 Fix #11097 - avoid duplicate calls to r_core_get_boundaries_prot (#11103) 2018-08-18 13:45:15 +02:00
Khairul Azhar Kasmiran
bfb1b7d12e ie(j): revert hpaddr->haddr (#11121) 2018-08-18 13:43:22 +02:00
radare
9b9cb254d6
Fix #11120 - Fix context disasm with the foreach operator (#11123) 2018-08-18 03:40:59 +02:00
Jacob Rosenthal
b0547831f1 syscalls: print syscall numbers in hex instead of dec to accomodate macos x86 64 2018-08-17 17:43:25 +02:00
pancake
7e083b57fb Fix last coverities (2 memleaks) 2018-08-17 17:38:24 +02:00
pancake
874369c224 First tab is created twice 2018-08-17 16:43:11 +02:00
Fangrui Song
82cec46150 Make px 2 @x:90 (len > temp blocksize) honor the temporary block (#11106) 2018-08-17 01:03:40 +02:00
Vanellope
e55bb9dea4 Now cursor works on the Disassembly panel, albeit rather roughly just yet. (#11115)
* cursor should barely work on the disassembly now

* implemented the cursor on the disassembly, this is just a start point though.
2018-08-17 01:02:00 +02:00
Rafael Rivera
18e6cb9484 Fix plugin file path parsing (#11092) 2018-08-16 19:09:18 +02:00
sivaramaaa
0010fe9652 Add json output to afcf 2018-08-16 19:08:48 +02:00
radare
d2995a13b4
Improve search.in= boundaries (#11109)
* Improve the SearchBoundaries
- Honor vaddr/paddr
- Parse rwx strings instead of hardcoded strings
- Kill io.sections.* and add bin.sections
* PA search boundaries should at work with the debugger mode
* Kill io.sections and improve search.in with dbg.maps
* Simplify maskMatches
* Fully kill io.sections in search.in and add bin.section
* Expose page permissions in search boundary list and remove dead code
2018-08-16 18:00:21 +02:00
Arnaud Lefebvre
8a1604adb2 cmd_debug: remove dco command help (#11110) 2018-08-16 14:28:00 +02:00
kriw
928f7be1e7 Fix command izzj (#11083) 2018-08-16 11:05:40 +02:00
radare
0ce42507dc
Initial implementation of visual tabs (Vt and VT) (#11105) 2018-08-16 11:01:53 +02:00
pancake
5b93b354ac Add minor fixes (avoid numm dref) 2018-08-16 04:29:15 +02:00
exokortex
dcb481122c Fix command interpret when scr.html is on (#11093) 2018-08-16 04:05:52 +02:00
Fangrui Song
cb0a6f0ca3 Fix -Wunused-variable (#11080) 2018-08-15 10:25:53 +02:00
Adam Zambrzycki
7e04582718 Fix formatted json colors (#11078)
* Fix formatted json colors
2018-08-14 21:23:24 +02:00
exokortex
6d4950b694 fix ds->hint use after free 2018-08-14 17:56:30 +02:00
Andry
915b3deeb1 Fix core->anal->sdb_types reset after i cmd 2018-08-13 19:00:17 +02:00
pancake
fcc5938e9d Fix /as for Linux/ARM32 (android) 2018-08-13 18:45:40 +02:00
pancake
77482df0ba Fix crash in asm.imm.trim
$ r2 -qc "af ; e asm.imm.trim=true ; pdf" /bin/ls
2018-08-13 18:05:32 +02:00
pancake
6334b8c8bd Fix #11036 - Fix oobread crash in serch bounds within aaV 2018-08-13 16:20:34 +02:00
Rene Laemmert
e012f03559 removed the last ?y from vmenus (#11070) 2018-08-13 13:52:02 +02:00
Rene Laemmert
63954a14aa Update graph.c (#11066) 2018-08-13 13:37:13 +02:00
pancake
231e04b413 Fix some memleaks in visual panels (coverity) 2018-08-13 12:13:19 +02:00
sivaramaaa
2b2c901da7 Remove a unnecessary check (#11065) 2018-08-13 11:46:09 +02:00
radare
e570489327
Implement p=2 command (#11061) 2018-08-13 11:45:54 +02:00
sivaramaaa
8a2397e4b1 Improve syscall search (#11058) 2018-08-13 03:13:25 +02:00
Maijin
f14e05ac55 Remove /A, /Af from help 2018-08-12 17:17:39 +02:00
Florian Märkl
404e4a1b74 Prompt on exit to kill tasks (#11054) 2018-08-12 13:27:45 +02:00
vane11ope
762e3d0f92 fixed a stupid bug 2018-08-12 11:48:10 +02:00
vane11ope
ce783e6a9f resize functionality implemented 2018-08-12 11:48:10 +02:00
Itay Cohen
bbe7d78138 Make graph.offset independent on asm.offset 2018-08-12 11:47:33 +02:00
pancake
6523803c60 Move /s into /as 2018-08-12 04:21:50 +02:00
pancake
c0b50e97cf Improve syscall search with static analysis instead of emulation 2018-08-12 04:14:09 +02:00
pancake
51ffc052d2 fs searches -> search 2018-08-12 04:12:18 +02:00
pancake
7c23a94339 Use strbuf in panels and make o always available 2018-08-12 03:55:13 +02:00
pancake
a36fae2b29 Implement pd-- for context disasm 2018-08-12 03:27:09 +02:00
pancake
960b0fc211 Initial cleanup of the rbin api 2018-08-12 03:02:05 +02:00
pancake
1fb81e5049 Implement esil cmds for invalid and unaligned trap exceptions 2018-08-12 03:01:46 +02:00
Andry
d8773a0b98 replace sdb_count with sdb_isempty 2018-08-11 23:24:56 +02:00
ITAYC0HEN
25fd5bef66 Honor asm.graph=false in json as well 2018-08-11 23:24:26 +02:00
pancake
a61d80ff9f Fix last coverities and the use of r_str_cmp as list comparator
* Fix avra test and avoid long time loading trash data in avra
2018-08-11 20:59: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
Itay Cohen
177fde65d9 Remove extra tabs when there's no offsets 2018-08-11 18:45:20 +02:00
Michael Zhang
8e0af8e9c8 Add switch_op output to "afbj" (#11022) 2018-08-11 18:39:35 +02:00
Florian Märkl
ad42d0ed7f Sleep in r_core_rtr_cmds() (#11025) 2018-08-11 17:24:19 +02:00
radare
2487fa20a4
Unify /A into /a and move ?O into aom (#11019)
* Many fixes related to the argument parsing and help messages
2018-08-11 16:39:18 +02:00
Florian Märkl
cc3c87532a
Break all tasks on exit (#11026)
* Break all tasks on exit

* null check in r_cons_context_break()
2018-08-11 16:23:27 +02:00
Khairul Azhar Kasmiran
e08900b9bd
Add baddr to iI (#11017)
* Add baddr to iI

* Revert num of args for pair()
2018-08-11 17:54:39 +08:00
Carles Pey
46d6762262 Quick fix to prevent afta messing up with the debugger (#11023) 2018-08-11 01:54:07 +02:00
sivaramaaa
0fad500788
Rename and retype arguments as argc and argv in main function (#10994)
* Rename and retype argumets as argc and argv in main function

* Generalize argument renaming

* Propgate type to register based var from it's counter part
2018-08-10 23:45:52 +05:30
Dmitriy Somov
745c81faa1 Multiple arguments support for db, db-, dbw, removed dbwC (undocumented and duplicate of dbC) (#11013) 2018-08-10 21:46:30 +08:00
Khairul Kasmiran
8c0a1505c1 Some param & local renaming 2018-08-10 21:41:10 +08:00
Rene Laemmert
b2aa8d1804 Fix highlighting (#11016) 2018-08-10 15:24:24 +02:00
radare
e434a5938b
Fix so command on ARM64 (honor mininstrsize and fix so-X where X > 1) (#11006) 2018-08-10 11:41:47 +02:00
Abdullah Obaied
90cacfdcde Remove redundant yank (#10997)
* Remove redundant yank

* Remove deprecated messaged

* Remove ?y help entry

* Remove ?y case
2018-08-10 09:04:25 +02:00
pancake
15f4a939a0 Revert "Simplify length handling of p commands (#10955)"
This reverts commit 6e8373c392.
2018-08-10 00:40:46 +02:00
Fangrui Song
6e8373c392 Simplify length handling of p commands (#10955)
This also makes `x 2 @x:90` (len > temp blocksize) honor the temporary block.
2018-08-09 18:04:51 +02:00
Khairul Azhar Kasmiran
3353519bce
Fix #10989 double pre-disasm (#11005) 2018-08-09 22:50:20 +08:00
pancake
dc5be0e089 Show error when cannot write after VA (use api vs cmd) 2018-08-09 16:36:11 +02:00
pancake
afda57061c Show error when VA instructions cant be assembled 2018-08-09 16:32:11 +02:00
Fangrui Song
a93d33d23f Fix warnings in debug (#10981) 2018-08-08 12:14:47 +08:00
Fangrui Song
3565137460 Fix memory leak in autocompletion (#10984) 2018-08-08 12:14:35 +08:00
Luca Di Bartolomeo
800fa1b909 Some improvements to the visual color editor VE (#10979)
* Feat: select background color in visual color picker
* Feat: various enhancements to visual color editor

Added truecolor support
Made initial help more helpful
Added h/l keys to switch colortheme
Added c key to change the command used to generate the preview
2018-08-08 12:12:28 +08:00
exokortex
a76b965410 Fix segfault when calling get_src_regname on an invalid or unaligned address (#10977) 2018-08-07 16:12:36 +02:00
pancake
b2f1595b59 Add more help for /A and fix other helps 2018-08-07 15:00:36 +02:00
Iru Cai (vimacs)
6e0939d101 Print reloc symbol address (#10969) 2018-08-07 14:31:17 +02:00
pancake
1d0a3dd252 Add /Af in help 2018-08-07 13:57:45 +02:00
pancake
968ba48209 Fix A? help and behaviour 2018-08-07 13:56:44 +02:00
radare
0969b835de
Fix last covs (#10973) 2018-08-07 13:06:23 +02:00
AsFaBw
84852de244 Fix 10811 - Improvements in gdbclient breakpoints (#10940) 2018-08-07 12:15:11 +02:00
David CARLIER
cc30a38cc0 Detects OpenBSD cookie protection for functions which is added with .openbsd.randomdata elf section. (#10967) 2018-08-07 12:07:43 +02:00
cyanpencil
18a764e94e Fix: added pag up/down and home/end keybindings in selection widget 2018-08-07 11:06:50 +02:00
cyanpencil
30ba4d5c9b Fix: resetting background colors in comments 2018-08-07 11:06:50 +02:00
Fangrui Song
6c56a41e75 completion: fix potential out-of-bound read and clean up (#10954) 2018-08-07 09:23:27 +02:00
radare
642ebcc9da
Fix #10933 - Use r_str_newf and sdb_fmt instead of snprintf in cbin (#10950) 2018-08-06 13:01:59 +02:00
pancake
de4b9939ff Some shorter help messages 2018-08-06 13:01:34 +02:00
pancake
a1d34b4afc Reduce width of p? 2018-08-06 12:29:48 +02:00
radare
c1ab35df32
Fix #10800 - Honor op->prefix in op.mnem and add FAMILY_THREAD for x86 and ARM (#10953) 2018-08-06 10:38:02 +02:00
pancake
c5208b84e4 Use io.pcache.write instead of io.cache for performance reasons 2018-08-06 09:39:57 +02:00
Fangrui Song
90105a92f9 cmd_print: add command names beside case labels (#10948) 2018-08-06 01:19:52 +02:00
Khairul Azhar Kasmiran
0d6adaf1fb Fix -Wformat-truncation warnings in cbin.c for #10338 (#10933) 2018-08-06 01:06:20 +02:00
pancake
c9e8f89f0c Fix #10916 - enable cache around afta 2018-08-06 01:05:14 +02:00
pancake
6d1ec2d697 Add q!! and q!!! autocompletions 2018-08-05 22:13:33 +02:00
Luca Di Bartolomeo
370f35c2a6 Vim-like autocompletion in visual offset prompt (#10912)
* Feat: autocompletion widget for offset prompt in visual mode
* Fix: screen refresh when erasing sel_widget
* Refactor: many small changes to the autocompletion widget
* Fix: colors in selection widget taken from palette
* Refactor: do not use utf8 inside selection widget
* Refactor: rename ANSI_ESC_CLEAR_LINE to R_CONS_CLEAR_LINE
2018-08-05 20:53:12 +02:00
Fangrui Song
015ee0bfb1 Add unaligned integer types and fix unaligned load and bound issue in /v (#10934) 2018-08-05 19:32:54 +02:00
Fangrui Song
95094a3c3e cmd_write: add command names beside case labels (#10941) 2018-08-05 19:32:18 +02:00
Fangrui Song
6e776b986a Fix some warnings in debug (#10929) 2018-08-05 11:56:15 +02:00
sivaramaaa
1f87361fe3 A simple detection and renaming of stack canary (#10931) 2018-08-05 11:54:34 +02:00
fr0zn
e0db66c554 Fixing crash on ts*, #10914 (#10915) 2018-08-04 23:58:29 +02:00
cyanpencil
69a26bbbf3 Fix: remove again ascii control codes in json output 2018-08-04 23:56:42 +02:00
Luca Di Bartolomeo
c076e12941 Add "save to file" to ag*w commands + colorize comments like ";arg1" (#10860)
* Colorize comments like ';arg1' as var type comments

* Choose path for saving dot graph

* Fixed ag? help

* Remove addr argument from most of ag* commands

* Fix: gcc warnings in r_core_graph_cmd + use vartype comments in cmd_type

Refactor: Move r_core_graph_cmd from cconfig.c to cmd_anal.c and make it static

Refactor: moved getViewerPath() to cmd_anal.c too

* Refactor: rename r_core_graph_cmd to graph_cmd

* Refactor: many small refactors of ag* commands in cmd_anal.c

Refactor: solve merge conflict in cconfig.c

Refactor: other small refactorings in cmd_anal.c

* Fix: wrong merge in cconfig.c and updated ag? help
2018-08-05 03:35:50 +08:00
Fangrui Song
ac04e2d965 meson: don't compile files that are not used standalone
They caused a plethora of -Wunused-function warnings.
2018-08-04 18:16:12 +02:00
Khairul Kasmiran
c9ec8b54b9 Cd.: show size of data at current address 2018-08-04 13:41:21 +02:00
Andry
6601ccb583 Fix #10895 - tcc infinite loop 2018-08-04 13:17:29 +02:00
Khairul Azhar Kasmiran
672b2a3850
Add hvaddr to iee(j) output; haddr -> hpaddr (#10899)
* iee(j): add hvaddr

* haddr -> hpaddr

* Minor realignment
2018-08-04 08:17:37 +08:00
pancake
447116022e Fix asan crash in the fi command 2018-08-03 15:33:27 +02:00
Fangrui Song
16f4c8dadf Print help if cfg.newtab=true (#10893) 2018-08-03 08:44:33 +02:00
Fangrui Song
31629a4f8e cmd_info: add command names beside case labels (#10907) 2018-08-03 08:43:13 +02:00
Fangrui Song
8c2cacbb0a Add help_msg_pc (#10906) 2018-08-03 08:42:35 +02:00
Luca Di Bartolomeo
1c55911ddb Fix: color ascii escapes in json output (#10898) 2018-08-03 11:50:58 +08:00
sivaramaaa
e6796bf812 Add a verbose option for afta to increase visibility on missing database input (#10897) 2018-08-02 21:25:34 +08:00
Maijin
096d5eed00
?%? must be the same as %? Fix #10866 (#10894) 2018-08-02 13:18:48 +02:00
Paweł Łukasik
20cacc39a0 Fixing the issue with seeking to a function name that starts with 'A' (#10890)
* Fix issue with seeking to function name starting with 'A'
2018-08-02 13:09:42 +02:00
Maijin
66d3b4d0fe aflqj as ints Fix #10572 2018-08-02 10:11:05 +02:00
Maijin
70f65c9521
iX for listing .c found with dbginfo #6159 (#10892)
* iX for listing .c found with dbginfo #6159

* iX for listing .c found with dbginfo
2018-08-02 10:10:17 +02:00
Luca Di Bartolomeo
5aced3c295 Fix arrow keys not working in visual refs mode (#10887)
* Fix: arrow keys not working in visual refs mode

* Refactor: exit from visual refs mode with 'q' or ESC
2018-08-01 22:05:24 +02:00
cyanpencil
3fda01343d Fix: coverities 1394583 1394582 1394447 2018-08-01 17:52:06 +02:00
Khairul Kasmiran
ce752a7b81 Minor refactoring 2018-08-01 23:02:19 +08:00
pancake
eb355771f5 Disable graph.dotted by default 2018-08-01 14:40:07 +02:00
pancake
5c3ede332c Fix build of the a2f plugin 2018-08-01 06:45:54 +02:00
pancake
6a64ae487a Fix #10849 - Improve L command with all subcommands and proper help message
- Autocomplete L <file>
- Rename core_anal into core_a2f
- Fix a2f - it was not creating any valid function
2018-08-01 05:10:54 +02:00
sivaramaaa
0043a7c1e2 Fix #10871, null deref issue in afta 2018-08-01 01:03:07 +01:00
Paul I
56a960ea3a Some fixes for ag command:
* Fix r_file_path() on Windows
* Fix bug in r_core_graph_cmd()
* Use explorer.exe as picture viewer on Windows
2018-08-01 01:02:38 +01:00
Florian Märkl
7ab290d170 Fix tasks_lock_enter() 2018-08-01 00:55:28 +01:00
Khairul Kasmiran
dcdb33bda3 Fix -Wformat-truncation warning in disasm.c for #10338 2018-07-31 22:59:57 +08:00
Khairul Kasmiran
f0bf39805d ieej: PFMT64d -> PFMT64u 2018-07-31 22:10:39 +08:00
Khairul Azhar Kasmiran
5ef73c0876 Declare elf preinit/init/fini array entries as data (#10858)
* Declare elf preinit/init/fini array entries as data
* Using rva
* Use entry->bits instead of info->bits
2018-07-31 15:24:07 +02:00
mandlebro
643eaa6bd9 Fix 'dpj pid' command 2018-07-31 12:43:41 +01:00
pancake
6fc94b8ea5 Unset iova when cfg.debug is set, dunno who broke that. io.debug needs to be killed 2018-07-31 11:26:18 +01:00
pancake
a1666a7712 Fix warnings introduced recently 2018-07-30 18:17:09 +01:00
Florian Märkl
8beae0bb91 Fix pvector usage in r_core_get_boundaries_prot 2018-07-30 18:49:37 +02:00
Florian Märkl
d5c1fcfd74 Implement flat RVector and pvector 2018-07-30 18:49:37 +02:00
pancake
1b7a3ae94d Add missing autocompletion for the obf command 2018-07-30 17:16:38 +01:00
Vanellope
c9969157e7 the scroll up-down behaviour of the disassembly in both Vp and V! should be unified. (#10848) 2018-07-30 03:06:58 +08:00
Vanellope
5e56c90483 get [1][2] jumps for panels and fixed some unstable behaviors (#10836)
* fixed unstable behaviours and [1][2][3]jump now works.
* added the help messages
* restyling for the help message
2018-07-29 12:56:15 +08:00
cyanpencil
f3b33640d1 Adjust edge positioning if there is a graph title
Fix whitespace
2018-07-29 12:48:15 +08:00
cyanpencil
29955c4c0d Add '#' key to toggle graph hints
Refactoring

Small fix

Fix for windows in graph.c
2018-07-29 12:48:15 +08:00
cyanpencil
169d69efd7 Different dot style for backedges 2018-07-29 12:48:15 +08:00
mandlebro
410ff31de8 Fix aecs and added aecc (continue until call) 2018-07-27 20:10:35 +01:00
fcasal
9a83761c6d esil emulation now stops at breakpoints (#10834) 2018-07-27 20:01:38 +01:00
fcasal
e57fdba049 Increased dsf step limit, which prevented sucessfull stepping out (#10828) 2018-07-27 20:00:48 +01:00
mandlebro
3e55b5f57d Default esil.breakoninvalid to false 2018-07-27 18:51:44 +08:00
mandlebro
2f01fd8890 Change esil.breakoninvalid default to true 2018-07-27 18:51:44 +08:00
mandlebro
527c366c79 Added esil break on invalid instruction variable 2018-07-27 18:51:44 +08:00
Luca Di Bartolomeo
046af40bd2 Separate command history for sdb shell "ks" (#10820)
* Separate command history for sdb shell (ks)
* Refactor whitespace in sdbshell_history_down()
2018-07-27 10:33:46 +01:00
cyanpencil
4ac4873100 Dotted lines only for conditional jumps
Set graph.dotted default true + refactor in canvas_line.c
2018-07-27 02:12:50 +08:00
cyanpencil
fc26f2a04e Use dotted lines in graph 2018-07-27 02:12:50 +08:00
cyanpencil
b9be6c9a8c Added r_file_globsearch and zfs **.sig support
Updated zf? help

Removed debug eprintf
2018-07-27 01:26:34 +08:00
vane11ope
e1c2af7570 because i am forced 2018-07-26 19:19:58 +08:00
vane11ope
e759cb837b reverted back the meaningless styling, and that if is not that long anyway 2018-07-26 19:19:58 +08:00
vane11ope
de079654c4 further refactoring and fixed a bit of bug 2018-07-26 19:19:58 +08:00
vane11ope
61a7c5582e added comments for the missing commands 2018-07-26 19:19:58 +08:00
vane11ope
4b740a0b8f refactoring and fixed bunch of bugs as well as added seek o command 2018-07-26 19:19:58 +08:00
David CARLIER
12e587f112 Few code corrections (#10816) 2018-07-25 17:33:54 +02:00
cyanpencil
f260195ad5 Renamed cmd_meta_hsdmf to cmd_meta_others 2018-07-25 00:27:44 +08:00
cyanpencil
d9f71bd845 Use cmd_meta_hsdmf instead of cmd_meta_comment 2018-07-25 00:27:44 +08:00
cyanpencil
d86046e373 Better Ct? help 2018-07-25 00:27:44 +08:00
cyanpencil
f9cf143e2b Added command Ct to add type analysis comments 2018-07-25 00:27:44 +08:00
Vanellope
4644d34764
cache the result of generated graph and r2dec (#10788)
* cache the result of generated graph and r2dec
2018-07-24 23:19:25 +09:00
Vanellope
e0dc197c17 commented out the help message which does not work functionally just yet that I would like to get back in future. (#10796)
* commented out the help message which does not work functionally just yet that I would like to get back in future.

* added in the help message for pseudo code mode

* fixed seek to entry0/PC by .
2018-07-24 14:59:47 +02:00
n0psledbyte
7694964dfe fix visual panel crash when hit enter 2018-07-24 15:31:23 +08:00
sivaramaaa
1d4577db80 Fix few minor issues 2018-07-24 11:33:08 +08:00
sivaramaaa
162675aff9 Fix a last cov and a crash in afta 2018-07-24 11:33:08 +08:00
cyanpencil
008354f865 Fixed a->codebuf not null terminated in vasm.c 2018-07-23 13:44:28 +08:00
cyanpencil
03af3f7160 Fixed buffer overflow in vasm.c 2018-07-23 13:44:28 +08:00
sivaramaaa
c5928fabda Add profile to specify format specifications for different programming languages/compiler 2018-07-23 11:18:12 +08:00
sivaramaaa
1efd33734b Add type propagation via format string parsing 2018-07-23 11:18:12 +08:00
cyanpencil
515950c559 Added color palette support to visual types menu 2018-07-23 11:11:15 +08:00
Florian Märkl
7995089d3f Always keep break stack filled in tasks in threads 2018-07-21 16:29:12 +02:00
Florian Märkl
41127c0dfc Simplify core->tasks_lock locking 2018-07-21 16:29:12 +02:00
Florian Märkl
8c8f0a6516 Add &b command 2018-07-21 16:29:12 +02:00
Luca Di Bartolomeo
13a2cb344a [WIP] Colorize function arguments and variables part 2 (#10777)
* Colorize comments that hint type of data
* Use new colors for comments that hint type of data
* Colorize local variables and args in disasm
* Fixed leak in r_anal_var_all_list()
* Refactoring + rename color func_arg* to func_var*
* Updated all color themes for func_var* colors
* Directly query sdb for faster and cleaner var colorizing in r_colorize_opcode
* Remove hackish r_core.h include in print.c and use callbacks instead
2018-07-20 12:45:51 +02:00
vane11ope
87bd92a64c pseudo menu added in 2018-07-20 02:34:30 +02:00
vane11ope
da93272db3 fixed a huge bug where somehow you could not go back from VV to V and added pdc as a starting point 2018-07-20 02:34:30 +02:00
pancake
20b95e4bb4 Fix asan issue related to the hashbang launch 2018-07-19 17:25:44 +02:00
pancake
b401cdda8e Fix #10770 - Only gather function metadata for afll and aflj 2018-07-19 11:49:58 +02:00
pancake
b6fb01b586 Fix 2 covs in panels 2018-07-19 11:11:10 +02:00
pancake
a3cc1d111d Fix last cov 2018-07-18 20:30:25 +02:00
fcasal
f86af30ffa Restore baddr after debug ends when oo'ing (#10774) 2018-07-18 20:18:10 +02:00
Khairul Kasmiran
51e293663b Fix ieej output 2018-07-18 19:33:12 +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
pancake
a11b7fdc7e Im retarded 2018-07-18 18:29:49 +02:00
pancake
fa6c126461 Implement ?vx command 2018-07-18 17:15:59 +02:00
Riccardo Schirone
9a06b35277
meson.build: do not add "r_magic" as Require in pkgconfig if using sys 2018-07-18 15:50:02 +02:00
Vanellope
aac23f61d5 Support multiple levels of menus in vpansl (#10755) 2018-07-18 12:00:17 +02:00
pancake
f98d5c8593 Fix the msp430 disassembler asan regression 2018-07-18 11:54:52 +02:00
cyanpencil
8cb110efa3 Add function argument colors to palette 2018-07-18 00:07:48 +02:00
cyanpencil
4b11dc03cd Colorize arguments and variables of functions 2018-07-18 00:07:48 +02:00
pancake
87ea24f22a Improve VA, show changed bytes as selected, less glitching 2018-07-17 23:53:44 +02:00
Paul I
9cb663cbdb Fix r2 -H MAGICPATH 2018-07-17 23:19:21 +02:00
sivaramaaa
87267a9e35 Fix noisy output in afta 2018-07-17 23:16:41 +02:00
pancake
a13e35371e Fix travis-asan issue in cmd_pd with highlight 2018-07-17 20:24:17 +02:00
pancake
80699258dd Aim to fix #10757 2018-07-17 19:27:50 +02:00
David Carlier
c5ec231946 Attempt to fix #10693 issue. 2018-07-17 17:41:51 +02:00
Maijin
9e4039ccc3 Use unsigned values in JSON for offsets in bb 2018-07-16 19:36:00 -04:00
cyanpencil
9639afa6dc Use r_str_get to prevent passing null to %s 2018-07-17 00:59:16 +02:00
cyanpencil
68b4e5e52b Fix 1393408 unused value in graph.c 2018-07-17 00:59:16 +02:00
cyanpencil
0bdcccf575 Fix 1394097 resource leak in disasm.c 2018-07-17 00:59:16 +02:00
sivaramaaa
9f6eafebcd Add some improvments and few fixes to afta 2018-07-16 21:53:32 +02:00
pancake
778c7722f6 Avoid possible null deref 2018-07-16 17:56:24 +02:00
pancake
a59bbbb50e Refixes for omf 2018-07-16 17:22:16 +02:00
pancake
b3d0224071 Fix #10731 - Implement diq and use it in Visual debugger mode 2018-07-16 17:05:10 +02:00
n0psledbyte
87741bd3b9 visual panel mode: change name and command current panel 2018-07-16 16:30:57 +02:00