Commit graph

10197 commits

Author SHA1 Message Date
pancake
0274089288 Fix #4615 - seek to local flags '+.', and handle f.flag=addr 2016-04-12 00:55:03 +02:00
Jeffrey Crowell
74b5edd984 fix register get in dbg on BSD s/pc/PC 2016-04-11 12:34:42 -04:00
Jeffrey Crowell
9a77bdc7d5 fix r_debug_reg_get to use PC instead of pc in dbg 2016-04-11 12:26:33 -04:00
pancake
644c0c4930 Fix segfault in aav 2016-04-11 15:17:07 +02:00
pancake
910ec5d000 Fix conditional warning regression in format.pe 2016-04-11 13:14:35 +02:00
pancake
5ef2b3cc0f Fix many warnings 2016-04-11 12:22:15 +02:00
pancake
c6ef723055 Autocomplete aav and other sub-aa commands 2016-04-11 10:23:08 +02:00
dequis
c30c102ea4 Fix invalid free after tab-completing pf or te commands
Commands such as "pf." or "te" changed the tmp_argv_heap flag to true,
which means the completion argv is heap allocated and
r_core_free_autocomplete() should free it.

r_core_fgets() assigns a different, non-heap allocated array to argv,
sets argc to 226, and doesn't free the old one or change that flag.
So the next call to r_core_free_autocomplete() tries to free 226 items
out of tmp_argv.

This is fixed by freeing the old tmp_argv before replacing it with
radare_argv
2016-04-11 10:20:37 +02:00
pancake
c91e0a3a64 Do not emulate metadata and initial release-notes.js 2016-04-11 10:16:56 +02:00
pancake
c87d0159f3 Initialize BP in aeim and fix asm.emu's CALL in disasm 2016-04-11 02:24:21 +02:00
Alexander Couzens
7c6ec5f146 fix mips forward assembler when using negative offset
Fix 'Invalid reg name (-0x5c60)' when try to assemble
'lw t9, -0x5c60(gp)'
2016-04-11 00:58:04 +02:00
pancake
90b37aa106 More fixes and enhancements for aav and arm32 2016-04-11 00:56:48 +02:00
pancake
90098d6125 Fix for ARM32 LDR and MOV PC 2016-04-11 00:27:42 +02:00
pancake
f42e69bb3e Fix /V hitnames and add aav command 2016-04-11 00:03:14 +02:00
pancake
30ae724e89 Fix /V argument parsing 2016-04-10 23:17:16 +02:00
Álvaro Felipe Melchor
99fc0b9fef fix CID 1352385 and 1354256 again (#4601)
* fix CID 1352385 again

* fix CID 1354256 again
2016-04-10 21:28:05 +02:00
Álvaro Felipe Melchor
2f9229af43 fixed pe version info 2016-04-10 21:25:56 +02:00
Ahmed Mohamed Abd El-MAwgood
febb482077 FIX #4204: Implement fastcall function arguments (#4596)
FIX #4204: Implement  fastcall function arguments
2016-04-10 20:59:11 +02:00
Álvaro Felipe Melchor
8cd86c367e Fix oob read in pe 2016-04-10 18:43:32 +02:00
Rakholiya Jenish
402e53b030 correct and complete the blowfish implementation
minor typo fix
2016-04-10 18:04:52 +02:00
pankajkataria
4789c5d46c CID-1354256-libs.c and CID-1352385-fs.c 2016-04-10 18:04:04 +02:00
Roi Martin
fa6415f1e1 Update graph help with summary mode 2016-04-10 13:02:23 +02:00
pancake
ddd6c18974 Fix #4572 - Fix heap bof in elf versioninfo parser 2016-04-10 02:00:52 +02:00
pancake
4e0a71c0c3 Fix #4573 - fix oobread in java disassembler 2016-04-10 01:23:18 +02:00
pancake
3f7a70fb7d Fix #4564 - oobread in dalvik disasm+analyzer 2016-04-10 01:12:58 +02:00
pancake
6f4518a247 Fix #4588 - uninit memory in m68k dis 2016-04-10 01:06:16 +02:00
Rakholiya Jenish
8ea2e80354 add ROL and ROR support 2016-04-10 00:37:34 +02:00
Rakholiya Jenish
4c1c17f90a add ROT to rahash2
fix indentation

remove unnecessary header inclusion
2016-04-10 00:37:34 +02:00
Roi Martin
92ab708310 Disassembly first BB instead of first 4 insns in CG mode 2016-04-09 22:29:16 +03:00
Roi Martin
89ee2585d6 Add "summary mode" to ascii graphs 2016-04-09 22:29:16 +03:00
Álvaro Felipe Melchor
3c98a3acf1 Fix #4567, #4566 and oob write 2016-04-09 21:13:31 +02:00
Álvaro Felipe Melchor
63990bef32 Fix #4589 2016-04-09 20:05:18 +02:00
skuater
917bd004cc r_bin_per_import fixed for tiny files 2016-04-09 19:54:12 +02:00
Álvaro Felipe Melchor
400664a25c Fix #4571 - thx revskills 2016-04-09 19:09:09 +02:00
Álvaro Felipe Melchor
8009d35f13 Fix #4576 - thx revskills 2016-04-09 17:07:20 +02:00
Álvaro Felipe Melchor
8ba4c5b959 Fix #4585 2016-04-09 16:28:45 +02:00
Álvaro Felipe Melchor
79c7e5ec1f Fix #4587 - thx @revskills 2016-04-09 16:19:54 +02:00
Anton Kochkov
5bff63a7f0 Fix CID 1346910 2016-04-09 16:06:51 +03:00
Anton Kochkov
7c1a822af5 Fix CID 1352382 2016-04-09 16:02:01 +03:00
Anton Kochkov
d09eaaed33 Fix CID 1352383 2016-04-09 16:00:36 +03:00
Anton Kochkov
96c5783b5d Fix CID 1354257 2016-04-09 15:56:08 +03:00
Álvaro Felipe Melchor
60e64d49bf Fix #4563 - thx @revskills 2016-04-09 13:46:08 +02:00
Álvaro Felipe Melchor
fe0ea49a6f Fix #4577 - thx @revskills 2016-04-09 13:01:15 +02:00
Álvaro Felipe Melchor
38452b4052 Fix #4581 - thx @revskills 2016-04-09 12:49:09 +02:00
Álvaro Felipe Melchor
68d4a43aad Fix #4578 - thx @revskills 2016-04-09 12:28:26 +02:00
Álvaro Felipe Melchor
c711dfabdd remove another stray character 2016-04-09 12:06:38 +02:00
Álvaro Felipe Melchor
e7d4fdfd30 remove annoying stray character 2016-04-09 11:49:05 +02:00
Álvaro Felipe Melchor
df4cb535f0 Fix #4580 - thx @revskills 2016-04-09 11:47:35 +02:00
Álvaro Felipe Melchor
91e161a626 Fix #4568 - thx @revskills 2016-04-09 11:39:49 +02:00
Jeffrey Crowell
0503b3e741 fix #4579
ty revskills
2016-04-08 21:41:22 -04:00
pancake
4476720aa8 Fix regprofile regression 2016-04-08 13:36:15 +02:00
pancake
4217a5a5bc Honor fcn.fcnlines in fcnvarlist 2016-04-08 12:18:28 +02:00
Álvaro Felipe Melchor
2fed6d3447 Fix #2780 2016-04-08 12:11:05 +02:00
rene
d97c1c3a06 added rest of sto lod mnemonics to esil 2016-04-08 12:10:13 +02:00
Rakholiya Jenish
2e06e5159f Add imq/imj (fixes from @radare) 2016-04-08 04:05:28 +02:00
pancake
d1636fb175 Fix #4553 - e cfg.debug=true forces native 2016-04-08 03:40:53 +02:00
pancake
843fcf1e7d Implement Cz like Cs with automatic length detection 2016-04-08 03:30:21 +02:00
Jeffrey Crowell
49e81e6776 correct amount of numbers in memcpy... 2016-04-07 21:27:42 -04:00
Jeffrey Crowell
a3fd8cdcfa fix command injection on V;, allow " in comments
closes #4547
2016-04-07 21:26:39 -04:00
pancake
3ccdfbd6e8 Add asm.(symbol|section).col and honor meta in reflines 2016-04-08 02:56:42 +02:00
pancake
fe02539afb Fix some warnings for debug.mach0 2016-04-08 01:09:56 +02:00
pancake
b54614d292 Use anal reg profiles from debug.esil 2016-04-08 00:54:15 +02:00
Roi Martin
eb2040e37f Minor fix when saving xrefs to prjfile 2016-04-07 22:18:19 +02:00
Álvaro Felipe Melchor
041fc7423a fix #4539 - null dereference 2016-04-07 21:16:55 +02:00
rene
c309d707af added lodsb,stosb and did some rep cosmetic to esil x86 2016-04-07 16:22:01 +02:00
pancake
eb99ec8580 Fix android build 2016-04-07 16:20:29 +02:00
Christiane Ruetten
53b0918b59 Fixing buffer size
`r_hex_str2bin` turns every two input nibbles into a single output
byte and thus writes maximum half the input size. However, there's
the special case where it writes one additional output byte when
presented with an odd number of nibbles. Even though this results
in an error (negative of the number of bytes written), we must
ensure that at least one byte more is allocated for its output
buffer.
2016-04-07 16:05:16 +02:00
Christiane Ruetten
f5c32ee38d Fixing usage line order 2016-04-07 16:05:16 +02:00
Christiane Ruetten
3253e1c625 Extending wo* commands to use clipboard
When the [val] argument to wo* subcommands is omitted, clipboard
content is used instead. This allows, for example, to easily XOR
two memory blocks.
2016-04-07 16:05:16 +02:00
Christiane Ruetten
d82bf6a781 Revert "Adding wo*y commands using clipboard instead of [val]"
This reverts commit e6ba84cdd8.
It was merged before the review was finished.
2016-04-07 16:05:16 +02:00
pancake
5867365cd5 Add dummy work for mach0 in rabin2 -O 2016-04-07 15:42:06 +02:00
pancake
d4b26eb9ec Fix #4536 - Fix background color rcons.html filter 2016-04-07 14:22:57 +02:00
rene
186cc728f8 fix the incrementation of edi/esi in string mov 2016-04-07 11:57:37 +02:00
pancake
8a6088a0dd Fixes for ARM IT op 2016-04-07 11:52:36 +02:00
Christiane Ruetten
e6ba84cdd8 Adding wo*y commands using clipboard instead of [val] 2016-04-07 11:19:32 +02:00
rene
8b1d14e388 split normal and esil analyse for x86 and added mov<string> handling for esil 2016-04-07 11:13:46 +02:00
Roi Martin
f44112dfc6 Implement cmd PS. Fix ax{*,j}
- Add r_core_project_save_rdb for selective project dump
- Implement command PS and Ps using r_core_project_save_rdb
- Fix commands ax* and axj
- Fix r_anal_xrefs_save (it didn't save DB to project file)
2016-04-07 11:12:50 +02:00
NaveenBoggarapu
fabf7020fb Fix #4523 - Fix asm.emu + pd leaks 2016-04-07 11:11:46 +02:00
pancake
f57936012a Honor 0 in pdf 2016-04-06 02:12:52 +02:00
Roi Martin
26546e4f3a Temporary fix xrefs load in radare2's -p flag 2016-04-06 00:04:34 +02:00
Anton Kochkov
5b75d4cac7 Fix CID 1353770, 1353769 2016-04-06 00:55:20 +03:00
Anton Kochkov
c481971fc8 Fix CID 1353776 2016-04-06 00:49:14 +03:00
Anton Kochkov
858d06c361 Fix CID 1331116 2016-04-06 00:46:55 +03:00
Anton Kochkov
c24b4087d6 Fix CID 1338360 2016-04-06 00:44:33 +03:00
Anton Kochkov
45720df1ef Fix CID 1353771 2016-04-06 00:41:07 +03:00
Lukas Dresel
5a4fe03d41 Fix #4495 - rasm2 not loading all the plugins
- Fixed misplaced free(tmp) i broke
- Made plugin loading work the same in every tool.
- Removed last instances of hardcode 'LIBR_PLUGINS' string
2016-04-05 22:42:19 +02:00
pancake
29a38193e8 Use shorter checksum vars for proper alignment 2016-04-05 13:31:22 +02:00
pancake
c834239830 Find strings in more sections for PE binaries 2016-04-05 13:30:10 +02:00
NighterMan
7708ab0fc9 This fixes radare/radare2#4524 (adds type to isj) 2016-04-05 12:37:24 +02:00
Daniel Domínguez
71beec242e Coredump generation for Mach0 binaries 2016-04-05 12:03:59 +02:00
Anton Kochkov
84917a3103 Fix CID 135284 2016-04-05 12:43:41 +03:00
Anton Kochkov
d558dec5b7 Fix CID 1353073 2016-04-05 12:38:34 +03:00
Anton Kochkov
5b3f52f0b6 Fix CID 1353777 2016-04-05 11:59:58 +03:00
Anton Kochkov
9904f6ae3b Fix CID 1353779 2016-04-05 11:50:53 +03:00
Anton Kochkov
769b1593a4 Fix CID 1353780 2016-04-05 11:49:17 +03:00
pancake
4b909bad9a Fix some asm.spacy and asm.flgoff glitches 2016-04-05 01:33:57 +02:00
pancake
1c67ef8dc1 Fix #4469 - asm.flgoff for fcn vars 2016-04-05 00:56:48 +02:00
pancake
62195cc005 Fix #4502 - Implement blx for thumb 2016-04-05 00:15:45 +02:00
pancake
bbaafb6b3d Fix #4511 - r_config bool values are case insensitive 2016-04-04 23:37:20 +02:00
Álvaro Felipe Melchor
114ad79b95 fix xtr dyldcache 2016-04-04 23:28:02 +02:00
Álvaro Felipe Melchor
fc4f2a2a38 fix minor things to be able to load dyld 2016-04-04 23:28:02 +02:00
Álvaro Felipe Melchor
b0c6ae4409 Fix #4295 and #4155
This commit is the first attempt to improve relocation
recognition when dealing with relocatables elf-files
2016-04-04 23:09:58 +02:00
kolen
150f8d9faf z80 analysis: memory load and store operations 2016-04-04 22:32:50 +02:00
kolen
27103ae05f Opsize calc: dependency to z80_cr, not old z80 2016-04-04 22:32:50 +02:00
kolen
9f22f69422 Made rst syscall instead of regular call 2016-04-04 22:32:50 +02:00
kolen
994044030f Fix cases leading to HALT, made halt non-eob
(Usually HALT is used for synchronization, execution continues after it)
2016-04-04 22:32:50 +02:00
pancake
32162ef393 Add r_buf_new_file API 2016-04-04 22:30:11 +02:00
Maijin
071d17d034 fix help for arn and drn 2016-04-04 22:01:37 +02:00
Anders Kaare
7757bfc8ca adding m68k anal archinfo
this fixes backwards seek in visual mode; it previously seeked one byte
forwards instead
2016-04-04 21:27:06 +02:00
Anders Kaare
cb2d45e491 fixing m68k branch disasm bug
16bit displacement must be signed, but were unsigned. I've converted the
branch variants to 8/16/32bit signed casts rather than duplicating the
8bit ISBITSET() special case.
2016-04-04 21:27:06 +02:00
Anders Kaare
8615a6a7c6 analyze m68k jsr.w/jsr.l as calls, not jumps
function analysis would terminate when reaching a jsr
2016-04-04 21:27:06 +02:00
Lukas Dresel
cb60759219 Removed unnecessary r_lib.h dependency in r_util.h 2016-04-04 21:26:20 +02:00
pancake
d706552d2f Fix #4517 - double free in strbuf 2016-04-04 21:25:03 +02:00
Jeffrey Crowell
714ae015b5 remove dead code in cond_cs2r2 2016-04-04 13:02:49 -04:00
pancake
474fa51da7 Fix #4512 - Fix segfault in pdf with asm.emu 2016-04-04 17:13:07 +02:00
pancake
d0ddc1a226 Fix crash in bin.elf.has_canary 2016-04-04 02:15:31 +02:00
pancake
740e43eadd Fix some segfault and consistencies 2016-04-04 01:59:30 +02:00
pancake
802a793074 Fix even more memleaks 2016-04-04 01:03:31 +02:00
pancake
c01b5a6562 More memleak fixes 2016-04-04 00:52:45 +02:00
pancake
54fe1ae941 Fix uaf and another memleak 2016-04-04 00:36:18 +02:00
pancake
e8263655be Fix more memleaks 2016-04-04 00:17:57 +02:00
pancake
c9514302bf Fix some lifecycle memory leaks 2016-04-03 23:52:36 +02:00
Anders Kaare
70b35f1c48 m68k analysis failed for backwards branches
it read operands as unsigned values, e.g. an offset of -4 would become
252 instead
2016-04-03 21:51:15 +02:00
pancake
2c43b48b23 Fix back fcnsign for w32 abi 2016-04-03 18:41:50 +02:00
pancake
032b0689cc Fix fcnsign on non-windows code 2016-04-03 18:13:35 +02:00
skuater
36edff3732 fix wait routine in bochs for linux 2016-04-03 17:39:59 +02:00
pancake
9eb63df89f Fix #4502 - Implement blx address for arm32 assembler 2016-04-03 17:35:52 +02:00
kolen
31354a19fd Remove extra eob's 2016-04-03 17:18:40 +02:00
kolen
6f710a3b8e Add some more z80 analysis 2016-04-03 17:18:40 +02:00
Álvaro Felipe Melchor
593b6c85e5 Fix #4481 2016-04-03 17:02:47 +02:00
pancake
cb9315b86f Fix #4466 - null in pf*x 2016-04-03 01:43:16 +02:00
Lukas Dresel
1977400d73 Added short and long long types to t command 2016-04-03 01:15:49 +02:00
pancake
dd3ac102e5 Be arch-specific in that plt analysis trick 2016-04-02 23:58:52 +02:00
pancake
43e8692f09 Do not show stuff in aoj if not available 2016-04-02 23:45:21 +02:00
pancake
344bf13064 Add missing sym.imp.abort noreturn 2016-04-02 23:38:32 +02:00
pancake
a521f418fd Fix plt analysis check 2016-04-02 23:19:23 +02:00
pancake
af33904e7b Do not show cond if not available 2016-04-02 23:05:09 +02:00
Roi Martin
75c5c31b53 Fix double free when quitting from graph 2016-04-02 22:47:49 +02:00
Evan Shaw
58328def22 Show absolute offsets for relative branches in SNES disassembly
This makes the disassembly easier to read.
2016-04-02 10:02:27 +02:00
pancake
1571b9c251 Fix #4485 - Force eobjmp for jumps to different section 2016-04-01 19:39:31 +02:00
pancake
509c1c7447 Fix #4486 - Skip UJMP if in plt section 2016-04-01 19:37:05 +02:00
NaveenBoggarapu
7d61361361 fix some memory leaks 2016-04-01 19:25:32 +02:00
NaveenBoggarapu
f5650005bf corrected minor spelling and grammar mistakes 2016-04-01 19:25:32 +02:00
oddcoder
0c409d52e8 Fix #4478
* Add `b` key to bind selected type to current offset.
* cursor can be beyond the end of types.
* colorize title bar if scr.color.
* missing union tab.
* 'd' key doesnt works (should delete types and fields).
* ~~'a' must add a key instead ofa type if inside a struct.~~
  it is and easier to delete that stuct and recreate it with that
  extra key
* add `-` key to open cfg.editor to load types
2016-04-01 19:24:41 +02:00
pancake
c917f128fd Dont fallback from UJMP to RET and ignore eobjmp in UJMP 2016-04-01 12:24:19 +02:00
pancake
05c5ffe23e Add two missing MH flags for mach0 binaries 2016-04-01 12:10:30 +02:00
pancake
0474d1e41e Define generic conditional enums for arm and x86 2016-04-01 12:06:02 +02:00
Mizari
477986be2c Removed possible null dereference and one clang-analyzer warning squashed 2016-04-01 10:34:28 +02:00
pancake
fa4edbfa45 Fix scroll up in disasm after project load 2016-04-01 01:56:16 +02:00
pancake
cc4b08716e Honor anal.archinfo.{min|max}.opsize in Vk scrollup 2016-04-01 00:27:14 +02:00
pancake
7afc11ff39 Fix the p=X 0 tests 2016-04-01 00:02:56 +02:00
pancake
fcefa06dd1 Honor ARM conditional bits to skip bxeq lr and such 2016-03-31 23:38:25 +02:00
Álvaro Felipe Melchor
cd85e12a31 fix some memory leaks 2016-03-31 23:01:02 +02:00
Tony Wasserka
eadfeff76d Honor cursor in VX and in log messages printed in Vx. 2016-03-31 21:34:42 +02:00
Jeffrey Crowell
8afbe7527f remove double lock 2016-03-31 14:21:23 -04:00
pancake
c2b151f8c8 Fix a lot more covs 2016-03-31 13:21:51 +02:00
pancake
259816b7e6 Fix more covs for bochs 2016-03-31 13:08:39 +02:00
Evan Shaw
48450e3d96 SNES analysis improvements
* Nearly all ops have been given a type
* Set nopcode (always 1)
* Set branch conditions
* Set jump targets
2016-03-31 12:29:35 +02:00
pancake
d4d6b1e1ff Implement new commands: yl, yw, ywx, wz, and re-fix .q 2016-03-31 05:42:37 +02:00
pancake
4b72511f6a Implement ys to show clipboard as string 2016-03-31 05:15:20 +02:00
pancake
d68822c389 Honor q in scripts to stop interpreter 2016-03-31 04:48:36 +02:00
pancake
7bfa3f42cf Add graph.gv variables to set custom graphviz styles 2016-03-31 02:25:54 +02:00
pancake
4053c60295 Use vee arrows in graphs 2016-03-31 02:12:53 +02:00
pancake
c724e3b1a5 Honor ec graph.{true|false|trufae} in aga for graphviz 2016-03-31 02:03:44 +02:00
pancake
cdc6fb4687 Fix parsing of rgb colors and support html 2016-03-31 01:16:19 +02:00
pancake
a9a8fa2886 Do not show function address in graphviz's basicblocks 2016-03-31 00:16:33 +02:00
pancake
ef317a026b Fix #4462 - null deref in elf parser 2016-03-30 22:54:48 +02:00
Kitsu
3e5d281815 Fix #4436 - more help for o subcommands 2016-03-30 22:39:30 +02:00
Anders Kaare
ff21bb5fbf fixing 6502 analysis
36e42b33fe broke analysis by introducing a
new enum value. The analysis code didn't switch on the enum but rather
used it directly as an integer, so since the new SNES_OP_IMM has 5 as
its integer value the analysis code would think that the op was 5 bytes
in length.
2016-03-30 22:08:52 +02:00
pancake
7a19745932 Add missing squash.mk 2016-03-30 16:47:23 +02:00
michalbednarski
dfb3680298 Fix NULL dereference of Elf_(Verdaux) *aux 2016-03-30 16:03:52 +02:00
pancake
d9d4e7f889 Initial implementation of fs.squash and merge squashfs-tools 2016-03-30 16:01:24 +02:00
pancake
33d6a27441 Add more op.val for x86 2016-03-30 16:01:16 +02:00
pancake
400b4da257 Fix io.cache segfault 2016-03-30 16:00:52 +02:00
Alexandr
45bb5ef079 Fix #3955 2016-03-30 13:30:22 +02:00
skuater
01fce3fe8e Initital implementation bochs for linux. 2016-03-30 12:57:15 +02:00
pancake
354b9efbf2 Add ?E clippy echo and use it in ???? 2016-03-30 12:44:56 +02:00
pancake
41a280c3c6 Fix #4453 - Honor cursor in Vx 2016-03-30 12:30:51 +02:00
pancake
2177eff8e8 Fix #4450 - No more empty aga graphs 2016-03-30 12:28:44 +02:00
Mizari
ae2bcb649a Fixed #4449 2016-03-30 11:31:04 +02:00
oddcoder
f64d2bb494 Fixing coverities
libr/core/cmd_type
Incrementing a pointer which might be null: "ptr".

/libr/core/cmd_anal.c: 2319 in cmd_anal_esil()
Variable "old_arch" going out of scope leaks the storage it points to.
2016-03-29 22:44:44 +02:00
pancake
fa8fc09843 Add support to load MACH0 Core files 2016-03-29 18:40:29 +02:00
Léo Gaspard
353ff45443 Add EBC 'not' instruction decoding 2016-03-29 17:10:04 +02:00
pancake
f672804964 Rename realsize -> realsz 2016-03-29 15:33:53 +02:00
pancake
fe0c38e372 Add asm.symbol to show flag/fcns in disasm 2016-03-29 02:03:17 +02:00
Léo Gaspard
5c8a663e23 Identify external calls for EBC 2016-03-29 01:22:48 +02:00
Léo Gaspard
7595af19e3 Use decode_index32 for EBC calls 2016-03-29 01:22:48 +02:00
Léo Gaspard
ff4bce16db Actually follow UEFI spec for index{32,64} 2016-03-29 01:22:48 +02:00
pancake
e93436ee5b Show calls and refs in aai 2016-03-29 01:13:00 +02:00
pancake
089ee49261 Fix #4410 - aai command to show analysis statistics info 2016-03-29 00:39:50 +02:00
pancake
9d54015029 Handle referer in http server for CSFR protection 2016-03-28 23:38:45 +02:00
pancake
659b83fb43 Add r_lang_rust 2016-03-28 00:19:21 +02:00
pancake
d629165ec8 Remove unnecessary = NULL in bin/p/*.c 2016-03-27 23:02:29 +02:00
pancake
c74b476464 Fix tk fflush issue for /t webui 2016-03-27 17:20:21 +02:00
pancake
f6454cc5f2 Add rarun2 execve to avoid posix_spawn 2016-03-27 14:17:39 +02:00
pancake
365162d4a8 Run file.analyze only when file contains entrypoint 2016-03-27 14:05:43 +02:00
pancake
d092be54e2 API fixes for bochs and honor sandbox 2016-03-27 13:43:51 +02:00
pancake
50513097e8 Fix XSS issue with scr.html=true 2016-03-27 05:49:30 +02:00
pancake
f641200bdc Enhancements for the p=ej 2016-03-27 00:32:12 +01:00
oddcoder
e1c120e654 Fix #4390 - Fixing tl? allignment and tl* output 2016-03-26 23:21:06 +01:00
Maijin
b25f3af2d7 Add aan in rowlog 2016-03-26 19:42:11 +01:00
Maijin
616a73610c Add [@addr] in p? help via @neobrain fix #4425 2016-03-25 14:07:01 +01:00
pancake
b6d5e6c9e3 Initial implementation of the make menu 2016-03-25 11:10:16 +01:00
pancake
cd6ef644bf Fix warnings in aex command 2016-03-25 10:18:45 +01:00
pancake
f1f83276ea Fix static build with libbochs 2016-03-25 10:13:50 +01:00
pancake
32857e5fcd Fix build 2016-03-25 00:26:55 +01:00
Álvaro Felipe Melchor
2cf64fbb8a fix memory leak 2016-03-25 00:25:26 +01:00
pancake
434b8251e9 Many syntax, language, indent, naming fixes for bochs 2016-03-25 00:21:56 +01:00
skuater
c45fe4e1e7 Initial support for BOCHS (windows only for now) 2016-03-25 00:21:49 +01:00
Álvaro Felipe Melchor
2c70142294 Fix #4393 2016-03-25 00:18:48 +01:00
Darredevil
9c998618aa Fix #4362 2016-03-24 23:06:50 +01:00
oddcoder
6919b58716 adding tk* 2016-03-24 22:48:59 +01:00
oddcoder
7c5a2ef97a adding tl tl- tl-* 2016-03-24 22:47:42 +01:00
alvaro_fe
27459b7deb fix latest covs 2016-03-24 20:43:33 +01:00
pancake
c451637967 Chop swift-demangle output 2016-03-24 16:27:00 +01:00
pancake
9d62ee0ddf Fix m68k.cs disassembler issue, honor asm.cpu in anal.m68k.cs 2016-03-24 16:21:49 +01:00
Mizari
d6daa9d591 Fixed function calls for r_reg_set_bytes(reg,-1...) 2016-03-24 12:47:00 +01:00
HummyPkg
cbedd8fd33 Put esil discovered strings into strings flagspace 2016-03-24 12:46:21 +01:00
pancake
5ed68fbb72 Enhance swift-demangle support 2016-03-24 12:27:23 +01:00
pancake
8abcab79d3 Support xcrun swift-demangle for OSX 2016-03-24 00:49:43 +01:00
pancake
bf904374ef Enhance icj 2016-03-24 00:41:56 +01:00
pancake
273b20294e Add support for swift-demangle if found in PATH 2016-03-24 00:20:59 +01:00
pancake
90bc56dc43 Implement variable to get minimum map address 2016-03-23 22:42:02 +01:00
Kitsu
59fc9900f4 Added AES-128/192/256 with ECB mode to rahash2 2016-03-23 22:27:00 +01:00
Álvaro Felipe Melchor
80ef8540da fix segfault ecp 2016-03-23 22:42:57 +01:00
HummyPkg
44d3e54c44 #4403 - Find more string references for MIPS and remove some false positives. 2016-03-23 22:19:42 +01:00
pancake
a00c916028 Fix #4404 - Fix ij json 2016-03-23 22:16:50 +01:00
pancake
71bd7719c1 Fix #4409 - eco segfault and implement ecp 2016-03-23 22:13:55 +01:00
Maijin
1a3e09d1e8 Save types in the project file 2016-03-23 09:08:26 +01:00
Evgeny
8e726d0376 #4395 2016-03-23 01:37:37 +01:00
Darredevil
c68887b067 Fix ESIL for x86 INC and DEC 2016-03-23 01:36:13 +01:00
pancake
f9a36d9da8 Fixes for the last commits 2016-03-23 01:35:20 +01:00
oddcoder
a17ff1546c fixed bug with t-
see this is not the expected
[0x00000000]> q
[ahmed@localhost radare2-regressions]$ ./run_tests.sh t/cmd_types
[ahmed@localhost radare2-regressions]$ r2 -
 -- Learn pancake as if you were radare!
 [0x00000000]> "td union x{int x; int y; int z;}"
 [0x00000000]> tk*
 unsigned int=type
 unsigned char=type
 unsigned short=type
 int=type
 long=type
 void *=type
 char=type
 char *=type
 const char*=type
 uint8_t=type
 uint16_t=type
 uint32_t=type
 uint64_t=type
 type.unsigned int=i
 type.unsigned char=b
 type.unsigned short=w
 type.int=d
 type.long=x
 type.void *=p
 type.char=b
 type.char *=*z
 type.const char*=*z
 type.uint8_t=b
 type.uint16_t=w
 type.uint32_t=d
 type.uint64_t=q
 x=union
 union.x=x,y,z
 union.x.x=int,0,0
 union.x.y=int,0,0
 union.x.z=int,0,0

 [0x00000000]> t- x
 [0x00000000]> tk*
 [0x00000000]>
 now it is fixed
2016-03-23 01:19:49 +01:00
oddcoder
5383fd6772 adding tu for enums
+ indentation
2016-03-23 01:19:49 +01:00
oddcoder
e19501168a Fix #3925 2016-03-23 01:19:49 +01:00
oddcoder
9c8253dd22 fixing type in sdbforce that lead to brocken t 2016-03-23 01:19:49 +01:00
pancake
cf7a751fc5 Fix #4367 - Honor pds [num-bytes] 2016-03-23 01:18:27 +01:00
pancake
e6011f0cc2 Fix #4367 - Implement pdsf and pdfs 2016-03-23 01:13:16 +01:00
oddcoder
3c02f8ebca Fix #4355 2016-03-22 17:10:28 +01:00
oddcoder
a918b21fc5 FIX #4358 2016-03-22 17:10:28 +01:00
Kitsu
55b0769c5e Missed fix in f4618c0 of r_core_diff for proper compilation 2016-03-22 14:47:57 +01:00
pancake
f4618c0bbd Remove radiff2 -CC because we already have -A, -AA, -AAA ... 2016-03-22 13:00:02 +01:00
pancake
a461bbc536 Fix #4304 - asm.filter for m68k 2016-03-22 12:45:05 +01:00
oddcoder
ad9d8fd0f1 Fix #4354
Fix #4354

fixing indentation
2016-03-22 11:49:40 +01:00
Mizari
59d614edf1 Added drw/arw command + r_reg_arena_set_bytes 2016-03-22 11:48:42 +01:00
pancake
0dcdab6d19 Fix #4279 - do not prefix fcn. in afn 2016-03-22 02:05:23 +01:00
pancake
ac96249a99 Set anal.autoname by default for now 2016-03-22 02:00:42 +01:00
pancake
f64cae4118 Fix #4374 - ags command to show simplified flowgraph 2016-03-22 01:55:37 +01:00
pancake
218ffda4f2 Do not autoname functions by default. Add e anal.autoname 2016-03-22 01:39:43 +01:00
pancake
895a966884 Do not diff function strings, increase memlimit 2016-03-22 01:31:10 +01:00
Darredevil
b362e2d2fb Alias 'doo' command for issue #4365 2016-03-21 23:55:01 +03:00
Álvaro Felipe Melchor
6e4c68f6f6 Fix oob read in cmd_anal.c 2016-03-21 16:41:18 +01:00
pancake
498b9d0fc4 Fix memleak in esil for x86.cs 2016-03-21 13:28:07 +01:00
pancake
b56d1c01bf Show header for pxd1 and pxd2 2016-03-21 11:18:09 +01:00
Maijin
2a82395c3f Typo Exapmle => Example
Typo Exapmle => Example
2016-03-20 13:51:33 +01:00
oddcoder
8b9c7e3a7c td? is not really helpful #4352
fixing indentation
2016-03-20 14:24:06 +02:00
oddcoder
9013158f4d output of t is wrong #4351
adding struct support to t

adding enum handling to `t`

and optimising the stuct type finder
2016-03-20 14:23:38 +02:00
pancake
1e4c9ba859 Fix pushal esil for x86-32.cs 2016-03-20 03:12:26 +01:00
pancake
a5fe52c1d3 Fix x86.esil for xchg, inc [mem] and set{e,ne,o,no,p,np,s,ns} 2016-03-20 03:03:26 +01:00
pancake
449a13e24e Show trap code name in the esil dumpstack 2016-03-20 03:03:00 +01:00
pancake
d1b36b01ec Fix #4267 - Prefix all env vars with R2_ 2016-03-20 02:24:17 +01:00
oddcoder
75d290833e removing support td-
| td-<name>          Undefine type by name
| t- <name>          Delete types by its name
their is no obvious difference between both of them basically td- was
buggy so I copied it into t- then fixed the bugs there.
2016-03-19 23:25:16 +01:00
pancake
0442a71fa8 Fix agc by only showing flagged nodes 2016-03-19 02:43:36 +01:00
pancake
efc215d587 Fix aap for static and make it work in debugger 2016-03-19 02:39:28 +01:00
pancake
5b7c9f5aad Implement pvj command 2016-03-19 02:26:28 +01:00
pancake
23d8f286bc Fix aap boundaries issue for static binaries 2016-03-18 19:23:56 +01:00
Adrien Garin
10de21de7e RBin: fix PE and ELF versioninfo
PE parser is now able to get the StringTable value even if the
wValueLength of the structure is incorrect.

Fix a regression with ELF versioninfo.
2016-03-18 18:35:05 +01:00
pancake
76fa5bddcf Add missing signature 2016-03-18 17:19:06 +01:00
pancake
446add902f Fix #4345 - Add scas{bwd} for x86.nz 2016-03-18 16:59:47 +01:00
Evan Shaw
db00a291a5 Prettier memory region printing 2016-03-18 13:55:26 +01:00
pancake
03c49f92af Avoid fixed size buffer in t 2016-03-18 13:50:33 +01:00
oddcoder
9a7ea1b3f1 fixing indentation 2016-03-18 13:44:24 +01:00
oddcoder
6b256183c2 fixing t- 2016-03-18 13:44:24 +01:00
oddcoder
9c8158d397 unused variable 2016-03-18 13:44:24 +01:00
oddcoder
0b4a7635a0 fixing t-* 2016-03-18 13:44:24 +01:00
oddcoder
09bc8f2eaf fixing tb 2016-03-18 13:44:24 +01:00
oddcoder
f71a8e66db Off by one error?
[0x00000000]> t int
Breakpoint 1, cmd_type (data=0x55555575c5c0 <r>, input=0x5555558598e1 " int") at cmd_type.c:82
82		RCore *core = (RCore*)data;
(gdb) n
84		switch (input[0]) {
	(gdb)
	197			const char *isenum = sdb_const_get
	(core->anal->sdb_types, input+2, 0);
	(gdb) p input + 2
	$1 = 0x5555558598e3 "nt"   <-- shouldn't be "int"
	}
2016-03-18 13:44:24 +01:00
Evan Shaw
2ad75b67ec Fix NES memory mirroring
The mirror lists were never actually allocated.
2016-03-18 13:43:43 +01:00
pancake
09aed6e525 Simplify ?T and fix load time 2016-03-18 13:39:45 +01:00
Darredevil
12e40a9249 Loading time for issue #3244 2016-03-18 12:34:17 +01:00
pancake
dc33b03011 Handle movk and movz in the arm64 assembler and pseudo disassembler 2016-03-17 17:26:08 +01:00
pancake
182db54e57 Fix off-by-one in p= 2016-03-17 13:04:50 +01:00
Evan Shaw
288763f69a Count hex digits as numbers in parse filter
Without this we chop off number operands as soon as a hex digit is seen.

Also fix and use a previously unused macro.
2016-03-17 11:13:30 +01:00
pancake
bab0eb62c8 Fix sdb leaks in elf versioninfo 2016-03-17 11:11:12 +01:00
Álvaro Felipe Melchor
7e5fd3d11f Fix versioninfo crashes elf 2016-03-16 18:10:49 +01:00
Adr1
ab5792d132 RBin: improving versioninfo
Store ELF versioninfo in Sdb.
Display VS_FIXEDFILEINFO for PE.
2016-03-16 18:10:49 +01:00
Dax89
b9c34953a1 PSX Plugin: Use capstone disassembler, look for strings in TEXT segment 2016-03-16 16:45:49 +01:00
pancake
84fc735501 Some enhancements for the MIPS ESIL emulation 2016-03-16 16:37:57 +01:00
pancake
cb119968dd Fix #4293 - Fix mips string reference detection with ESIL 2016-03-16 15:14:05 +01:00
Álvaro Felipe Melchor
43e5171cf7 remove eprintf message 2016-03-16 14:15:16 +01:00
pancake
b34b3c55e6 Fix build (missing dep for core) 2016-03-16 13:45:38 +01:00
pancake
b461e3989a Implement woE/woD to encrypt/decrypt with rc2/rc4/xor/blowfish/aes... 2016-03-16 13:33:50 +01:00
pancake
21bb24b7a4 Honor anal.strings in aae 2016-03-16 13:08:27 +01:00
pancake
ec895d787c Fix ROR/ROL ESIL expressions for x86-64 capstone 2016-03-16 12:51:26 +01:00
pancake
8f2c20ded6 Fix android build 2016-03-16 12:21:41 +01:00
Gabriel Corona
0ec1b47b7c Remove useless cast in anal_ppc_cs
It was necessary when the PPC imm field (in capstone) was a i32. It is
counterproductive, now that imm is a i64.
2016-03-16 10:39:25 +01:00
Evan Shaw
9f1ef0d721 Reduce OMF format false positives
While developing the SNES bin plugin, I noticed some SNES ROMs were wrongly
detected as OMF.

This commit adds two additional checks to check_bytes:

* Check that record size and string size in the first record agree with each other
* Check that the string in the first record is valid ASCII

Regression tests still pass.

This commit also fixes an assumption that the host is little endian.
2016-03-16 10:36:26 +01:00
easyhard
ddaa6dff07 Fix issue #4319 can not use regex sequence in rop 2016-03-15 18:14:43 +01:00
pancake
8a45a43a86 Initial import of the m68k.pseudo plugin 2016-03-15 12:29:53 +01:00
pancake
ae32acc5bc Add missing space after commas in m68k 2016-03-15 11:59:19 +01:00
pancake
15d9563014 Fix #4313 - & in function switches fcn->bits instead of global ones 2016-03-15 11:47:13 +01:00
pancake
b0f887edd9 Add tiny warning for anal.calls 2016-03-15 11:28:56 +01:00
pancake
846263a51b Implement ios9 pangu's tfp0 in the debugger 2016-03-14 23:24:49 +01:00
easyhard
91cc270fbf only try smaller addresses in non-align arch 2016-03-14 23:08:26 +01:00
easyhard
312f72ac01 Fix #4020 - ROP: Find gadgets from all offsets
End gadgat instruction may be part of a different
isntruction, depends on starting offset. Therefore,
rop searching should try some starting offsets that
are smaller than the previous end gadgat.
2016-03-14 23:08:26 +01:00
oddcoder
f5f28caa14 fixing little error in the description 2016-03-14 23:04:18 +01:00
oddcoder
021b9950db fixing a bug in eco
eco just freezes when requesting doc by the command `eco?`
2016-03-14 23:04:18 +01:00
pancake
d5c9f1d987 Add support for the iOS9 Pangu tfp0 trick 2016-03-14 23:01:12 +01:00
pancake
da9616fbb3 Aim to fix ADDIU mips esil for #4293 2016-03-14 12:38:16 +01:00
pancake
a842ae428c Colorful entropy bars 2016-03-14 12:08:05 +01:00
pancake
23af75fd16 Fix crash in rahash2 -E blowfish 2016-03-14 10:41:07 +01:00
pancake
e4e9b01728 Add anal.strings false by default and enhance string detection 2016-03-14 09:42:54 +01:00
pancake
185207cc1c Fix #4305 - aar detect and define strings 2016-03-14 01:45:25 +01:00
pancake
6d204b1bc3 Fix another whitespace issue in pd 2016-03-14 00:15:51 +01:00
pancake
b80904319d Fix #4194 - Remove RCons dependency from RIO 2016-03-14 00:11:31 +01:00
pancake
23b3c5fe30 Fix #4290 - @@@ was not documented 2016-03-14 00:01:39 +01:00
pancake
1b1e722795 Workaround for 6502 to show 16bit PC register 2016-03-13 23:56:23 +01:00
pancake
ad2df38fca Fix onespace issue in pd 2016-03-13 21:56:46 +01:00
pancake
1c443caccf Fix some COVs in snes disassembler 2016-03-13 21:04:12 +01:00
Álvaro Felipe Melchor
9feae374f4 Fix oob read when demangling stripped binary 2016-03-13 19:19:03 +01:00
Álvaro Felipe Melchor
73a7427396 Fix #4302 - dynamic segment struggles 2016-03-13 19:19:03 +01:00
pancake
526d8d8e63 Fix #4275 - Fix lanai format string warnings 2016-03-13 03:23:54 +01:00
pancake
bd11cf8f81 Fix pd regression with spaces at the end 2016-03-13 03:13:27 +01:00
pancake
21fecbaf87 Some more p= fixes 2016-03-13 02:31:13 +01:00
Aneesh Dogra
236fc3213d Fix protype warnings for pe checksum. 2016-03-13 01:35:20 +01:00
pancake
fd5c8d17fe Refactor the p=X, honor current seek and better ascii bars 2016-03-13 01:30:28 +01:00
Maijin
daafa94407 Enable demangle by default fix #4266 2016-03-12 18:01:12 +01:00
Maijin
38bc88fb67 Also add the warning in aaa 2016-03-12 17:48:53 +01:00
Álvaro Felipe Melchor
879e7f411f Fix build 2016-03-12 13:38:17 +01:00
Álvaro Felipe Melchor
bbd597228e Fix segfaults in pe checksum 2016-03-12 13:30:41 +01:00
Álvaro Felipe Melchor
1828d76dcf Add missing type iej 2016-03-12 13:09:23 +01:00
Álvaro Felipe Melchor
1f2139fd54 Fix null dereference 2016-03-12 13:09:19 +01:00
pancake
0104b0b324 Show checksum info in rabin2 -I, need better naming 2016-03-12 11:28:05 +01:00
Aneesh Dogra
5c3f5904ea Add a way to compare claimed CRC (in header) of PE files with the actual CRC. 2016-03-12 11:22:55 +01:00
pancake
977aeb8173 Show entrypoint type info in rabin2 -e and ie 2016-03-12 11:16:42 +01:00
Aneesh Dogra
0e3d4bf773 PE: Add support for parsing TLS and add TLS callback addresses to the list of entry points.
Only add the address if its valid.
2016-03-12 11:04:25 +01:00
Evan Shaw
36e42b33fe Support 16-bit immediate operands in SNES
Size for immediate operands depends on the value of the M flag
(for register A) or the X flag (for registers X and Y). A register is
8-bit when its respective flag is set and 16-bit when clear.

These flags can be set or unset independently, so this still isn't quite right
for when one flag is set and the other isn't, but it's an improvement. It's
possible to force a particular instruction to decode correctly by using the
`afh` command.
2016-03-12 03:06:46 +01:00
pancake
4fc392eefa Remove dead code 2016-03-12 02:36:37 +01:00
Álvaro Felipe Melchor
747699f712 remove stray error 2016-03-11 21:05:51 +01:00
Álvaro Felipe Melchor
4436e33ea5 check negative size on memcmp 2016-03-11 20:40:50 +01:00
pancake
04a5eb3fb4 Fix #4292 - JSON and quiet modes for p=[pe] 2016-03-11 12:19:37 +01:00
pancake
cea9c6840c Initial mpc version of the ragg2 lang compiler 2016-03-11 11:24:11 +01:00
pancake
e68b5f2463 Do not print ao's type2 if it's null 2016-03-11 09:50:36 +01:00
Jeffrey Crowell
3511c9198f refix pdfj 2016-03-10 11:34:21 -05:00
Aneesh Dogra
c7867da944 versioninfo: Fix SEGV on files with no info (.txt, ...) 2016-03-10 16:40:21 +01:00
Álvaro Felipe Melchor
b567b72171 added IFDBG on version info code to avoid those annoying messages 2016-03-09 23:15:43 +01:00
oddcoder
9edd7bc3f3 adding todos and fixing indentation 2016-03-09 18:40:17 +01:00
oddcoder
966900121d adding bunch of another esil & fixing the bits 2016-03-09 15:32:50 +01:00
Aneesh Dogra
571e2a80c8 rahash2: Add RC2 2016-03-09 15:18:50 +01:00
Riccardo Schirone
8fa47870b2 core/disasm: at should not depend on i, that is used as index for buf
"i" was reset to 0 when the buffer is moved, so "at" pointed back to an
already printed instruction. With this patch "at" is calculated based on
"k", a new index that is never reset and simply indicates the delta from
the starting address.
2016-03-09 12:24:10 +01:00
oddcoder
888b7d575d fixing bug in goto disassmebly 2016-03-09 12:21:56 +01:00
oddcoder
23330b4d64 enhancing the jump instruction family
adding esil emitter and filling the RAnalOp struct
2016-03-09 12:21:56 +01:00
Elia Geretto
5f3d9d4899 Sort afl output by offset 2016-03-09 11:52:22 +01:00
pancake
342961a3c5 Fix #4251 - Blank space using fcnlines=0 and flgoff=1 2016-03-09 10:08:53 +01:00
pancake
bb5d4d7b56 Fix #4261 - duplicated offset with asm.spacy 2016-03-09 09:53:53 +01:00
pancake
bfdde3f565 Remove flag listing issues with asm.functions=false 2016-03-09 09:50:30 +01:00
Kishor Bhat
1139833812 RCrypto: Add support for the Blowfish cipher 2016-03-09 08:30:25 +01:00
Pankaj Kataria
e78b293f7c Fixed the case when input-string contains null bytes 2016-03-09 08:28:26 +01:00
Pankaj Kataria
aa8a65a852 rahash2 Added xor encryption 2016-03-09 08:28:26 +01:00
Jeffrey Crowell
f6739ec3be fix memleak in elf.c 2016-03-09 00:55:16 -05:00
Álvaro Felipe Melchor
19068d41d6 Fix oob read improving version info code elf - thanks @revskills 2016-03-08 22:16:10 +01:00
oddcoder
3b7b74c77a Adding the register profile pic18c 2016-03-08 13:07:43 +01:00
Riccardo Schirone
a10e2ce131 util/p_format: fix "pfj q" 2016-03-08 13:07:10 +01:00
Maijin
f728ed6bc3 Add command name in aaaa
Add command name in aaaa
2016-03-08 09:05:01 +01:00
Álvaro Felipe Melchor
0efdf9cf97 Fix again #4215 2016-03-07 22:17:59 +01:00
Maijin
e25992278c Add cabinet.dll ordinal file 2016-03-07 17:58:29 +01:00
pancake
d00beba767 Fix arm.cs thumb thing 2016-03-07 17:06:26 +01:00
pancake
02abba69f1 Fix #4253 - 1 byte oob read in mach0 2016-03-07 13:23:01 +01:00
pancake
1728566f75 Unify all err messages in esil emulation 2016-03-07 13:17:52 +01:00
pancake
588e264f9f Fix latest COVs 2016-03-07 12:54:40 +01:00
pancake
75bf9b233a Fix aat->aap typo and add no-mclass option for x86.arm.cs 2016-03-07 12:31:50 +01:00
pancake
be9d53417e Fix #4215 - Fix disasm of thumb mrs 0, primask 2016-03-07 04:50:06 +01:00
pancake
650e99407b Oops. copypaste error in 6502dis 2016-03-07 04:44:42 +01:00
pancake
2c049ad05e Better aaaa reports 2016-03-07 04:12:11 +01:00
pancake
377ff92134 Fix #4190 - Scroll below 0 in cursor mode not jumping to -1 2016-03-07 03:35:13 +01:00
pancake
3f5aa46bd5 Add rahash2 -E to encrypt instead of hash 2016-03-07 03:24:52 +01:00
pancake
00ac90f71b Initial import of crypto.rc4 algorithm and modernize RCrypto API 2016-03-07 02:38:50 +01:00
pancake
b2bb2ff78c Fix #4235 - oob read in aaf 2016-03-07 01:01:05 +01:00
pancake
f7e99c93e7 Fix #4241 - OOB read in rabin2 -V (versioninfo for ELF) 2016-03-07 00:37:27 +01:00
pancake
8de14dc2b6 Fix #4242 - OOB read in riscv disassembler 2016-03-07 00:21:49 +01:00
pancake
3c6cd37ba9 Fix #4243 - Stack overflow in aae 2016-03-07 00:18:06 +01:00
pancake
36ce331815 Fix #4239 - oobread in 6502 disassembler 2016-03-06 23:43:07 +01:00
pancake
c9267523ac Fix memleaks in the ragg2 xor key thing 2016-03-06 23:38:09 +01:00
pancake
c959e2032d Fix oobread in anal.brainfuck 2016-03-06 23:37:41 +01:00
pancake
0f4239cf71 Fix oob read in afe 2016-03-06 23:31:21 +01:00
pancake
1f1813dd45 Aim to fix #4231 - Segfault in cursor+fold 2016-03-06 23:23:39 +01:00
Matthieu Tardy
bb84bbc276 Fix memory leaks in rabin2 and libr 2016-03-06 23:17:44 +01:00
Álvaro Felipe Melchor
ee988122de fix oob read when doing aae 2016-03-06 23:15:42 +01:00
Maijin
fbb1b1e80f Adding verbosity in aaa 2016-03-06 19:38:25 +01:00
pancake
9c05579ade Add ecn and use it from VR with scr.randpal 2016-03-06 12:35:07 +01:00
pancake
fba4d03fef Fix #4206 - Enhance asm.relsub for x86 2016-03-06 11:41:49 +01:00
Pankaj Kataria
505756afcc Added default key for XOR encoding 2016-03-06 11:16:22 +01:00
oddcoder
f0ce323e7f fixing code indentation 2016-03-05 23:37:12 +01:00
oddcoder
d6dbd326d6 pic18c analysis plugin (coloring) 2016-03-05 23:37:12 +01:00
pancake
92ad561fea Fix latest coverities 2016-03-05 20:46:04 +01:00
oddcoder
9b21040898 fixing logic error in rcall instruction
I just misread the operands of the rcall instruction
their is 2 similar types of instruction (naming conveintions used only
by me and mentioned no where in the manual) the N_T where the n operand
is 8 bit and NET_T where the n operand is 11 bit
the rcall looks like the following 1101 1nnn nnnn nnnn which is obviosly
NEX_T
2016-03-05 19:54:31 +01:00
pancake
bb79d30444 Fix two infinite loops in the version info parsing for ELF 2016-03-04 16:15:00 +01:00
pancake
36d7e5a412 Fix warns in smd bin plug 2016-03-04 15:45:54 +01:00
oddcoder
115c0bd40d fixing OSX Darwin compilation error #4218 2016-03-04 15:20:20 +01:00
Riccardo Schirone
48fb9e14e0 core/visual: fix 'J' and 'K' when screen is full of flags/comments/etc. 2016-03-04 13:46:10 +01:00
pancake
6c9a44baf1 Fix oob reads in versioninfo for ELF 2016-03-04 12:08:29 +01:00
pancake
cacef87fcb Fix crash introduced in the rabin2 -V thing 2016-03-04 02:19:30 +01:00
pancake
b7ed999581 Use eprintf in the rabin2 -V versioninfo (for now) 2016-03-04 01:25:04 +01:00
Adr1
611c3d1752 RBin: Display File Version info 2016-03-04 01:15:56 +01:00
pancake
6ed05a7812 Fix pd regression 2016-03-04 01:15:20 +01:00
oddcoder
599cbcd3c7 attempt to fix scan.converity bugs
I also hunted 4th illegal memory read
the first 2 bytes of b is always casted to (ut16) type
with out checking if b even contains 2 bytes
now it is handled it correctly
2016-03-04 00:50:25 +01:00
pancake
ec3ee44ae0 Implement asm.flgoff and asm.spacy + minor optimization 2016-03-04 00:33:24 +01:00
pancake
3624931cde Use proper endianness in SMD plugin 2016-03-03 14:15:17 +01:00
pancake
7a1993b057 Fix str_case regression 2016-03-03 11:45:04 +01:00
pancake
5234d3c1ac Do not use size_t for iterators 2016-03-03 11:29:41 +01:00
pancake
ec41dca741 Fix lowercase sdb filenames for DLL import resolution 2016-03-03 11:03:14 +01:00
oddcoder
87b6ada97a Add asm.describe for pic18c 2016-03-03 03:18:03 +01:00
stanciuadrian
4a7ad2b607 corrected index of message length in SHA512/SHA384 preparation 2016-03-03 03:15:47 +01:00
oddcoder
7fe6c6dff2 Adding initial support for PIC18C diassembler 2016-03-02 11:55:22 +01:00
Riccardo Schirone
ec6b55527c core/disasm: fix set of last row offset
core/visual: reset cursor position on 'u'/'U'/'o'/'V'.
2016-03-02 11:29:13 +01:00
pancake
b559833a00 Release 0.10.1 Codename "Solid Chair Society" 2016-02-29 22:59:35 +01:00
pancake
4677f5baf5 Use XNU debugger by default as long as PTRACE backend had some flaws 2016-02-29 22:50:36 +01:00
pancake
3533813995 Fix #4190 - Scrolling beyond zero 2016-02-29 15:55:25 +01:00
pancake
c4e8864e7d Build fixes 2016-02-29 00:04:31 +01:00
pancake
9000fdf2f9 Fix #4192 - Fix crash with r2 -av810 -cpd - 2016-02-28 17:50:13 +01:00
mrdanielps
7fe1d56932 V810: fixes
* Proper bound checking when decoding.
* Reuse some macros.
* Follow code style guidelines.
2016-02-28 17:43:40 +01:00
Riccardo Schirone
64c3c9a723 core/graph: disable cursor when in graph mode to avoid glitches 2016-02-28 14:19:57 +01:00
pancake
569e44b5a2 Fix invalid free in r_fs_free 2016-02-28 02:50:33 +01:00
Martin Heistermann
ba9657df83 Fix relocation parsing for malformed files. 2016-02-28 02:43:25 +01:00
Martin Heistermann
fbd0905c56 Add initial indirect relocation (irel, ifunc) support. 2016-02-28 02:43:25 +01:00
Martin Heistermann
e528ce8dfe Refactor elf_specs.h to use the original glibc 2.22 elf.h.
Previously, elf_specs.h was an old(!) copy of glibc's elf.h with a few
additions accumulated over time.

This commit introduces a clear separation between an unmodified (save
one explanatory comment and a removed #include) copy of elf.h called
glibc_elf.h (elf.h already exists here), and elf_specs.h, which includes
the former file and only contains the required changes.

Updating glibc_elf.h in the future should be as easy as copying the file
from glibc and potentially deleting obsoleted parts of elf_specs.h.
2016-02-28 02:43:25 +01:00
pancake
a22258e99a Better error message for dbg.bpinmaps 2016-02-28 02:43:13 +01:00
pancake
35af84c978 Implement pxd[#] for signed num dumps 2016-02-27 18:36:28 +01:00
Álvaro Felipe Melchor
212169afb1 fix oob read in r_anal_esil_parse 2016-02-27 18:01:45 +01:00
pancake
0f21114112 Initial implementation of ?vi[1248] to compute signed integer values 2016-02-27 17:58:32 +01:00
Riccardo Schirone
fa2f6ba56e anal/op: fix get_used_var to really get the used local var in inst 2016-02-27 15:30:11 +01:00
pancake
09117ca99b Fix Cov CID 1352280 2016-02-27 12:38:02 +01:00
Jeffrey Crowell
b0fcdb386e fix crash in pf ? (foo)0 2016-02-26 15:35:02 -05:00
pancake
1f994eec76 Fix #4182 - ignore asm.tabs in pdc 2016-02-26 14:39:53 +01:00
Haakon Sporsheim
6c9e54a404 anal: Inline jump/call offset helper functions for xtensa. 2016-02-26 01:09:19 +01:00
Haakon Sporsheim
4d4ab62211 anal: Rewrite xtensa backend.
Based upon:
Xtensa Instruction Set Architecture (ISA) Reference Manual
  For All Xtensa Processor Cores
2016-02-26 01:09:19 +01:00
pancake
c6b53a62a5 Handle SUB.W in anal.arm.cs 2016-02-26 00:29:01 +01:00
pancake
c545af6fbf Honour asm.ucase with asm.filter on filtered local vars 2016-02-25 22:36:26 +01:00
pancake
a2c95de0a1 Fixes for arm and thumb LDR with PC relative 2016-02-25 22:14:43 +01:00
pancake
eb0f5ebc38 Fix #4158 - Fix arm thumb pc-red load regression 2016-02-25 13:48:28 +01:00
pancake
06ba8719d9 Reinclude workaround 2016-02-25 12:42:24 +01:00
rene
912a0825de FIX #4169 2016-02-25 12:21:54 +01:00
pancake
517f7fa23e Handle Vi in Vppc - aka change reg values with cursor 2016-02-25 11:35:59 +01:00
Anton Kochkov
d547ce90a8 Fix CID 134752 2016-02-25 13:24:36 +03:00
Anton Kochkov
faf789b4e8 Fix CID 1351416 2016-02-25 13:21:06 +03:00
Anton Kochkov
1b9658f2b7 Fix 1351567 2016-02-25 13:16:56 +03:00
pancake
0973759a8c Fix build 2016-02-25 10:57:15 +01:00
Anton Kochkov
4a146f8158 Fix CID 1351764 2016-02-25 12:48:49 +03:00
Anton Kochkov
f62ddc4b8c Fix CID 1351763 2016-02-25 12:46:36 +03:00
pancake
eef4665242 Initial support for tab in visual debugger 2016-02-25 10:28:54 +01:00
Prasanna Balan
d9f4bce40b MSP430: add support for illegal opcodes
Before this commit,any illegal opcode would return -1 which
would make r2 use 1 byte as default opcode width.This was
wrong on MSP430 as it uses fixed 2 byte opcodes.Fix this
2016-02-25 02:58:38 +01:00
pancake
a7f137f215 Support cursor in dr= 2016-02-25 02:58:26 +01:00
pancake
3e53c64553 Fix #4165 - Reduce warning messages in debugger mode 2016-02-25 01:55:16 +01:00
Riccardo Schirone
a87a77f9e4 core/disasm: asm.bbline should be based on RAnal
The BasicBlock is a concept you can have only with analysis info. This
ensure that the displayed result is correct.
2016-02-24 23:00:41 +01:00
Riccardo Schirone
e727e662db core/disasm: fix bbline reflines 2016-02-24 23:00:41 +01:00
pancake
a4b80effe3 Fix regression in rap 2016-02-24 18:22:40 +01:00
Haakon Sporsheim
3e33f973d4 anal: Fix xtensa conditional jump for bbxi.
Offset/imm8 is signed.
2016-02-24 18:15:33 +01:00
mrmacete
b3bd9cf3f8 ARM ESIL: wzr / xzr in separated region
+ also added LSL / LSR to the arm64math case
2016-02-24 18:12:47 +01:00
pancake
36a61b6f10 Optimize a70caf7160 2016-02-24 18:09:30 +01:00
Jeffrey Crowell
a70caf7160 fix crash in r2 -A
crowell: http://jjdredd.github.io/petka2.exe
crowell: http://jjdredd.github.io/petka.bt.txt
2016-02-24 00:41:36 -05:00
Mario Ballano
47d9888f93 Various RAP client/server bugs, endianness and remove RAP_RMT_SYSTEM 2016-02-23 15:00:59 +01:00
Riccardo Schirone
dddb490969 core/anal: give better names to function when they have symbols 2016-02-23 14:21:41 +01:00
pancake
490689c3ac Fix r_lib_type to string 2016-02-23 13:10:35 +01:00
pancake
1de0582257 Fix some more asm.decode nulls 2016-02-23 12:20:01 +01:00
Riccardo Schirone
28f3561512 core/vmenus: add 'Vdn' option to rename flags/vars in current inst 2016-02-23 02:35:47 +01:00
Riccardo Schirone
1336a7dff3 anal/fcn: rename local variables to use hex offset 2016-02-23 02:35:47 +01:00
Riccardo Schirone
e72f5ed0ae anal/op: add var field to RAnalOp to store the local used by op
anal: save writes/reades of vars/args and fix x86 stackop analysis
2016-02-23 02:35:47 +01:00
pancake
c2f5b72c80 Fix #4010 - axg: show recursive xrefs tree 2016-02-23 02:31:53 +01:00
pancake
8d68403a37 Simplify task_id_dead in io.mach 2016-02-23 00:53:16 +01:00
pancake
b5b548b1b3 Encode only non-printable chars 2016-02-23 00:00:55 +01:00
pancake
607491e1ce More fixes for pd@x:90 variants. New tests in r2r 2016-02-22 23:53:29 +01:00
pancake
8d60ef61dc Fix #4110 - Fix pd@x:90 issue 2016-02-22 23:45:36 +01:00
pancake
223a31d2ef Fix #3084 - pd 0 prints nothing 2016-02-22 23:29:05 +01:00
pancake
5d7421e355 Fix #4064 - asm.decode (null) issue 2016-02-22 23:21:29 +01:00
pancake
d5decff694 Fix #4134 - Honor min,maxlen in izz 2016-02-22 22:51:37 +01:00
Álvaro Felipe Melchor
af8743e0b7 xnu: fix issue when disable trace bit on arm 2016-02-22 21:22:01 +01:00
Álvaro Felipe Melchor
20fddc1e55 xnu: fix issue when writing in memory 2016-02-22 21:21:57 +01:00
Riccardo Schirone
81555efde2 flags: use name instead of realname as the key field of a flag item
flags: remove r_flag_set_name API because not consistent
       the right way to change the name of a flag item is by using
       r_flag_rename. the old api has been then marked as static and
       refactored.
2016-02-22 18:21:25 +01:00
Riccardo Schirone
23006460c1 flags: refactoring of r_flag_set
flags: remove dup parameter from r_flag_set
2016-02-22 18:21:25 +01:00
Riccardo Schirone
b80c635aba flags: refactoring of the APIs to unset a flag item
flags: free items when using unset_name, unset_off or unset_glob
2016-02-22 18:21:25 +01:00
Riccardo Schirone
33afcbdb2f flags: RFlag->ht_name should store directly a RFlagItem
The name used as a key should be unique and so there is only one item
for a given name.
2016-02-22 18:21:25 +01:00
Riccardo Schirone
a13d21cce7 flags: start fixing some style issues and add comments to the API
* remove format and cmd from RFlagItem because not used
* remove space_idx2 from RFlag because not used
* remove some dead code (USE_SDB and USE_BTREE)
* move around some functions
2016-02-22 18:21:25 +01:00
pancake
3e1590f4d9 More fixes for MIPS and ESIL emulation 2016-02-22 01:43:45 +01:00
pancake
f7fbbc419e Add dh in anal.x86-64.reg and fix some arm/x86 esil bugs 2016-02-22 01:14:06 +01:00
pancake
07ff9bb5fb Beautify aae and fix some arm32 esil 2016-02-22 00:22:52 +01:00
pancake
fbd834c5ba Add ARM32 prelude for aap command 2016-02-22 00:22:09 +01:00
@bezjaje
01a7a3fe90 fixed coverity and typo 2016-02-21 12:52:03 +01:00
pancake
522d30aea2 Fix regoff_t conflict 2016-02-21 03:45:41 +01:00
pancake
af2f02515f Support and load r_fs plugins 2016-02-21 02:32:28 +01:00
pancake
100df3bb32 Better MIPS32BE ELF relocs, add Rx regs in mips.cs and add scr.wheelnkey, nN defaults to flag now 2016-02-21 01:56:50 +01:00
pancake
3c1a4eb040 Implement relocs for MIPS32 big endian ELF binaries (openwrt) 2016-02-21 00:56:01 +01:00
pancake
7c76d45ab7 Fix #4114 - Remove the use of setjmp in xtensa arch 2016-02-20 23:41:23 +01:00
pancake
852385efe1 Add sys/ios-env.sh and enable XNU debug without ptrace by default 2016-02-20 23:30:11 +01:00
pancake
808c205f74 Fix r_io_section_next() and make io.sectonly happy 2016-02-20 22:51:34 +01:00
mrmacete
c66206640e ARM ESIL: arm64 math improvements
+ moved EOR to arm64math case
+ handled shift in arm64math
+ handled negated math (orn, eorn) in arm64math
+ handling of arithmetic shift right in arm64math
2016-02-20 22:16:35 +01:00
pancake
35e6a4d958 Bump version for git and ios builds 2016-02-20 22:16:28 +01:00
Prasanna Balan
f3f8a350c9 use correct architecture 2016-02-20 10:32:31 -05:00
mrmacete
e267bc9d2e ARM ESIL: fixed some more load cases for arm64
+ this will un-break some BROKEN regression
2016-02-19 16:10:26 +01:00
Riccardo Schirone
3cbba20b4e core/visual: fix bug with 'J' when in hex mode and r2 launched with -nn 2016-02-19 00:31:37 +01:00
Riccardo Schirone
5d08aee9af bin/demangle: fix possible SEGV when dereferencing binfile 2016-02-18 13:52:31 +01:00
pancake
8a1968824c Increase max disasm size 2016-02-18 11:08:26 +01:00
William Robinet
a67adbcbb8 Typos 2016-02-17 13:38:43 +01:00
Álvaro Felipe Melchor
98490aa881 xnu: chained step thumb32 seems to work 2016-02-17 13:37:50 +01:00
pancake
4378fea452 Fix #4060 - aecs* crash 2016-02-17 00:38:54 +01:00
pancake
f52d3c114c Add missing signature for the lanai disassembler 2016-02-16 23:26:55 +01:00
William Robinet
d3ab5f38aa Remove execution bit from source files 2016-02-16 23:21:46 +01:00
William Robinet
0c7cacc2dc Fix typos 2016-02-16 23:21:24 +01:00
Nikita Abdullin
1f98d3efd5 windows: WriteFile fix dwBytesWritten
issue #76 WriteFile must have dwBytesWritten != NULL if lpOverlapped == NULL
2016-02-16 21:25:42 +01:00
Álvaro Felipe Melchor
10a586b48d stepping works on ios though thumb32 chaining still doesn't work 2016-02-16 17:33:41 +01:00
Álvaro Felipe Melchor
ec3ac37bb5 Fix ios build and more rework 2016-02-16 17:33:41 +01:00
pancake
55eee73c6d Fix #4061 - properly assemble ldr.w thumb instruction 2016-02-16 17:12:37 +01:00
pancake
9197972e1c Add some preludes for arm64 and fix fcncount in aap 2016-02-16 04:23:34 +01:00
pancake
db9c00cfca Fix anal.afterjump 2016-02-16 03:54:30 +01:00
pancake
2cdd9ad744 Disable nopskip if there's a flag in there 2016-02-16 03:47:15 +01:00
pancake
79cec1e165 Fix analysis on ARM import trampolines 2016-02-16 03:39:26 +01:00
pancake
0e69bfd541 Add default noreturn functions, adjust xrefs and fix regression in type 2016-02-16 03:24:47 +01:00
pancake
3140749266 Fix #4095 - Export RBinSection info for mach0.la_symbol_ptr 2016-02-16 02:58:29 +01:00
pancake
de4cbb47ad Show flags referenced by the Cd 4|8 pointers 2016-02-16 02:50:02 +01:00
pancake
5d210f526e Support array definitions of Cd 4[10] 2016-02-16 02:42:44 +01:00
pancake
384cfb1042 Fix last coverities 2016-02-16 02:08:09 +01:00
pancake
11326489df Add Vdx to find xrefs with ./r 2016-02-16 01:21:36 +01:00
pancake
994eea2acb Fix 10 row limit in Vx 2016-02-16 01:20:25 +01:00
mrdanielps
d6f49bc54e V810: Implement ESIL 2016-02-16 00:57:42 +01:00
pancake
7dd32315a5 Fix r_strbuf regression 2016-02-16 00:57:17 +01:00
pancake
ce7ca97cb6 Wip fixes for r_strbuf 2016-02-16 00:28:57 +01:00
pancake
72d289ff4d Better addr|int detection in r_config_node_type 2016-02-16 00:13:41 +01:00
pancake
d35556a3e6 Fix #2276 - Implement et command 2016-02-16 00:10:46 +01:00
pancake
fd359e9121 Implement radiff2 -D and optimize r_strbuf 2016-02-15 23:51:20 +01:00
pancake
9497cd13b6 Add missing LDUR STUR in arm64 analysis 2016-02-15 22:08:52 +01:00
pancake
79c09b4356 Update capstone and fix m68k.cs plugin struct 2016-02-15 19:05:03 +01:00
pancake
636e0d6473 Update sdb from git to fix a crash on windows 2016-02-15 19:01:50 +01:00
pancake
a93805475d Add VideoCore support in RBin.ELF 2016-02-15 16:04:37 +01:00
pancake
d8ab2fb55f Handle LANAI in the ELF plugin 2016-02-15 14:12:30 +01:00
pancake
cdf63617d7 Initial support for LANAI disassembler 2016-02-15 13:27:23 +01:00
Álvaro Felipe Melchor
073e08321a xnu: use host_page_size instead of task_info with TASK_VM_INFO flag 2016-02-13 22:17:26 +01:00
Álvaro Felipe Melchor
c24dbc3054 Fix warnings 2016-02-13 22:17:21 +01:00
Álvaro Felipe Melchor
a2c9a63b82 Add repetitions when defining data for b and B when Vd 2016-02-13 22:17:14 +01:00
Riccardo Schirone
5282ed2d98 core/visual: estimate blocksize when in disasm mode 2016-02-13 09:24:37 +01:00
Riccardo Schirone
72ffe1bd0f cons/dietline: show the same number of items per line
It fixes a bug when showing options for autocompletion, where the first
row has less items than the others. With this patch every line, except
the last, should have the same number of elements.
2016-02-13 09:23:17 +01:00
pancake
1a89cac78f Initial support for search.overlap 2016-02-12 11:37:48 -06:00
Riccardo Schirone
0b8a589e16 anal/bb: keep track of ops positions inside a RAnalBlock 2016-02-12 09:06:36 -06:00
pancake
838b254cc8 Fix #4090 - Do not assemble one-arg xors in x86.nz 2016-02-11 07:35:51 -06:00
Álvaro Felipe Melchor
fdfd8801c9 update meta info when the key exists 2016-02-11 07:30:09 -06:00
Álvaro Felipe Melchor
27d60454a4 Fix #4096 2016-02-11 07:30:09 -06:00
Riccardo Schirone
82385bdbd1 core/disasm: ds->addr can change, addr remains always the starting value 2016-02-11 11:17:00 +01:00
Álvaro Felipe Melchor
feaaab517b demangle afl and disassembly 2016-02-11 01:32:36 -06:00
Riccardo Schirone
b6351ec833 core/visual: better implementation of cursor movements
core/visual: refactoring of movements with ocur enabled
2016-02-11 00:14:36 -06:00
Riccardo Schirone
b4fda922cd libr/core: calculate the offset of each disasm row
util/print: fix bug in r_print_row_at_off

core/disasm: fix bug when setting the row offset of last line
2016-02-11 00:14:36 -06:00
Riccardo Schirone
94123f158c core/disasm: review screen_bounds meaning
core/visual: enable screen_bounds only on default modes
2016-02-11 00:14:36 -06:00
Riccardo Schirone
444c6e616a core/visual: replace global variables with core->print fields 2016-02-11 00:14:36 -06:00
mrdanielps
8ee43270e8 V810: Add opcode descriptions 2016-02-11 00:13:27 -06:00
pancake
54419df6b4 Do not start webserver if http.root does not exist 2016-02-10 17:19:05 -06:00
evanrichter
7f43919750 add propeller architecture to asm.describe
source: http://nagasm.org/ASL/Propeller/printedPDF/QuickReference-v15.pdf
2016-02-10 17:21:08 -05:00
Jeffrey Crowell
aaf92c4e8e Gesmdis isn't a thing. Should be Genesis. 2016-02-10 13:16:08 -05:00
pancake
6b79f915df Fix #4095 - VdW chopping down to 32bits 2016-02-10 11:45:25 -06:00
pancake
24d76819d0 Expose reftype in /r 2016-02-09 11:52:26 -06:00
pancake
9f2ce614d3 Avoid null bytes in axt output 2016-02-09 11:38:55 -06:00
Skia
80edc616c7 Fix pfv (close #4075) 2016-02-09 07:21:34 -06:00
diouziou
118df8a0e4 Update debruijn.c 2016-02-09 13:19:43 +01:00
Maijin
530dbe72c1 Save/restore macros in projects fix #4050 2016-02-07 00:51:26 +01:00
pancake
d0f0629655 Remove unnecessary memcpy 2016-02-06 22:44:51 +01:00
pancake
74b23f10b9 Merge branch 'xnu' of https://github.com/alvarofe/radare2 2016-02-06 22:37:52 +01:00
Álvaro Felipe Melchor
5a63887ff5 xnu: added XNU_USE_PTRACE to xnu_wait 2016-02-06 20:23:15 +01:00
Álvaro Felipe Melchor
4e746ef20c Fix oob read when aa 2016-02-06 20:14:52 +01:00
Álvaro Felipe Melchor
efa2a8ecdf xnu: step, breakpoint working with mach exception 2016-02-06 19:53:29 +01:00
pancake
f2079db4ad Fix fatmach0 2016-02-04 18:02:09 +01:00
pancake
f5181c4d90 Initial rework for dyldcache 2016-02-04 15:44:49 +01:00
mrmacete
0d34a92270 Little arm64 ESIL improvements
+ added some cases to LDR, still not complete but enough to display some more method names in obj_msgSend calls
+ fixed a typo in decode_shift
2016-02-04 09:44:41 +01:00
Maijin
69c3ffa9e6 Change default syscall ahi S 2016-02-03 17:51:55 +01:00
Maijin
8571a9c2ba Add ahi for syscall numbers fix #4068 2016-02-03 17:05:03 +01:00
pancake
37d4b269b5 Use io.va in debugger mode to disable io.isValidAddress and fix analysis 2016-02-03 12:53:35 +01:00
pancake
3a2a713775 Implement ahi 32 for IP address hints 2016-02-03 12:29:32 +01:00
pancake
805e3f26e8 Fixes for lldb/debugserver on x86-64 2016-02-03 12:09:58 +01:00
Jonathan Neuschäfer
91c940738c Add opcode descriptions for riscv 2016-02-03 11:29:32 +01:00
Jonathan Neuschäfer
edbb677a79 libr/asm/d/arm: Fix description of ORR opcode 2016-02-03 11:22:13 +01:00
Álvaro Felipe Melchor
feea7f4d17 xnu: change logic handle exception
instead of a thread waiting for incoming messages, i've implemented
wait functionality above mach_msg, now i have to make it work
with r2 and avoid while (1) in the code, understand better the
references and start thinking about edge cases
2016-02-02 20:27:57 +01:00
condret
44b06b11de fix something 2016-02-01 14:10:09 +00:00
Ido Yariv
ac14493234 Set TCP_NODELAY on client TCP sockets
This can substantially improve performance on debugger client protocols.
2016-02-01 12:23:52 +01:00
Old T. Man
d17cbff22c Added the last cjmp instructions for xtensa. 2016-02-01 12:20:35 +01:00
Old T. Man
564f8d3b4d Fixed jumplines for xtensa platform. 2016-02-01 12:20:35 +01:00
condret
b1d894ab7b fix some warning 2016-02-01 10:58:36 +00:00
condret
f66e7a4c46 fix #4012 2016-02-01 10:09:20 +00:00
pancake
bb073cf5db Modernize asm/code.c 2016-01-30 03:02:06 +01:00
pancake
b08892dbb3 Fix Tricore warnings and handle in ELF 2016-01-30 02:58:45 +01:00
Kitsu
73f2995d2e Added tms320 description 2016-01-30 02:50:41 +01:00
pancake
d7a244f010 Initial import of asm.tricore disassembler plugin 2016-01-30 02:47:17 +01:00
pancake
d30b2f4894 Initial import of the anal.xtensa plugin 2016-01-30 01:37:04 +01:00
Jeffrey Crowell
f713c67794 restyle the function decl in r_debug 2016-01-29 18:52:53 -05:00
pancake
63854eb4ca Fix #4048 - Fix autocomplete of macros 2016-01-29 00:32:46 +01:00
pancake
7d91280e5c Handle EM_XTENSA bit in ELF header 2016-01-29 00:06:28 +01:00
Bigendian Smalls
6d1242c18d Added initial documentation for sysz architecture
This will cover 99% of the commands implemented correctly/currently (via
capstone). However, since this doco is a complete list of mnemonics as
of 2016, it will cover all the instructions when a more complete
implementation of sysz is build for r2. Thanks to @mainframed for
parsing the original docs to create the raw instruction files.
2016-01-29 00:02:48 +01:00
pancake
6f1655c491 Initial support for xtensa CPU disassmbler (from GNU binutils) 2016-01-28 23:59:50 +01:00
deffi420
0113d2a0d3 Add missing quotation mark in elf_version enum
Silences a warning on loading ELF definitions
2016-01-28 23:17:44 +01:00
Kitsu
a1b872517a Added lm32 description 2016-01-28 23:17:12 +01:00
Martin Heistermann
92c17e08c6 Fix a few MIPS pseudocode mistakes.
Special thanks to maijin in the #radare IRC for pointing out this
file to me.
2016-01-28 23:16:38 +01:00
Kitsu
ea70e2d704 Added missed mnemo in description 2016-01-28 12:22:41 +01:00
Kitsu
990abd338c Added desc to msp430 and fixed mnemo typo rcr -> rrc 2016-01-28 12:22:41 +01:00
condret
edc7ec2c61 fix a few warnings 2016-01-27 12:39:50 +00:00
pancake
c9779da737 Fix iopa tests 2016-01-27 03:33:52 +01:00
pancake
0911012a13 Refix xor assembler in x86.nz 2016-01-27 03:22:15 +01:00
pancake
44a86928cc Fix some of the warnings in #4013 2016-01-27 03:14:19 +01:00
pancake
e0b5efcb6b Fix #4004 - support xor r8-r15 in the x86.nz assembler 2016-01-27 02:54:13 +01:00
pancake
75d7faf35e Fix regression in comments in disasm 2016-01-27 02:49:40 +01:00
pancake
86b2cd3812 Fix #3958 - asm.emu obeys asm.cmtright 2016-01-27 02:35:45 +01:00
pancake
bcb065e5dd Fix #4031 and #4030 - asm.jmphints independent from asm.comments 2016-01-27 02:25:25 +01:00
pancake
289aece1f9 More code cleanup for gdm debugger plugin 2016-01-27 01:56:24 +01:00
pancake
90e2fc3031 Fix reg-write in gdb-thumb and tiny io cache optimization 2016-01-27 00:26:49 +01:00
pancake
32dbac517f Several bug fixes for gdb-arm and thumb remote debugger 2016-01-26 23:36:02 +01:00
ninjahacker
15717c0a9e Fixed ?v as first command returning strange value on 32-bit arm 2016-01-26 21:55:06 +01:00
Kitsu
6b98a61ae3 Added dalvik description #4014 2016-01-26 21:51:33 +01:00
Jeff Muizelaar
995409bfe2 Parse SHORT PDB type 2016-01-26 21:51:03 +01:00
Maijin
90bc1f37bc Added wpm and extended some descriptions @l4l fix #4033 2016-01-26 15:22:49 +01:00
Maijin
41c8c5ad48 Fix i4004dis scr -> src opcode 2016-01-26 15:10:39 +01:00
deffi420
f4bce2b425 Handle elf_phdr/elf_shdr enums in elf.c
... and refactor a little.
2016-01-26 09:39:22 +01:00
deffi420
028df44c9d Add type and flags enums to elf_[ps]hdr structs 2016-01-26 09:39:22 +01:00
Kitsu
16c102b2c5 Added i4004 for #4014 2016-01-26 09:38:52 +01:00
Jeffrey Crowell
4c0d56408f rm debug eprintf in rregex 2016-01-25 17:48:34 -05:00
pancake
dcab698e65 Fix Thumb detection in ELF shared libraries 2016-01-25 23:01:40 +01:00
Jeffrey Crowell
043d653339 respect search.to, search.from in rop search 2016-01-25 15:01:50 -05:00
pancake
d2e6ab52fd Fix adf issue 2016-01-25 19:19:01 +01:00
pancake
8d7c86c016 Fix #4023 - Add afb- command 2016-01-25 17:28:56 +01:00
pancake
3d3b5c5211 Fix one byte overflow in r2pipe.c 2016-01-25 17:20:45 +01:00
pancake
79cc7c9958 Add adf and adfg commands to define function gaps as data 2016-01-25 17:19:30 +01:00
NighterMan
497225d05c Temporary workaround for the buffer size limit when analyzing large files 2016-01-25 16:11:21 +01:00
NighterMan
67038f8738 Add CLAC/STAC instructions support (SMAP) 2016-01-25 16:11:21 +01:00
Evgeny
0e58051600 Java description fixed
#4021
2016-01-25 16:10:17 +01:00
pancake
59aa68c443 Do not warn in e- 2016-01-25 15:54:25 +01:00
Maijin
28a7dc072f Add i8080/java opcodes, fix x86/sh descriptions thanks @fenugrec @l4l 2016-01-25 12:47:36 +01:00
Maijin
098b7a8d01 Add Malbolge VM opcodes description 2016-01-25 01:08:53 +01:00
Maijin
43d15d5db3 Add SuperH-4 CPU opcodes description thanks @fenugrec 2016-01-25 00:19:58 +01:00
Maijin
29d8456013 Add m68k opcodes descriptions 2016-01-24 13:59:41 +01:00
pancake
3b85974b82 Show help in aaa? 2016-01-24 11:33:44 +01:00
pancake
bea71d7074 Add ap command to find prelude for current offset 2016-01-24 03:05:27 +01:00
Goncalo Carvalho
c4ea7fd354 convert negative fp numbers to hex and add static assert macro 2016-01-23 23:20:52 +01:00
Maijin
d512751230 Add arc opcodes descriptions 2016-01-23 23:00:34 +01:00
pancake
63956d67af Fix step in xnu debugger 2016-01-23 22:50:32 +01:00
Álvaro Felipe Melchor
c372743315 xnu: get rid of ptrace even for attach and detach
some rework in order to handle mach message as mach_exc_server and alike does
api change in plugin debug, now the function detach receive a pointer to RDebug
trying to deallocate port when are not needed any more
2016-01-23 22:50:28 +01:00
Maijin
273103e66d Add LH5801 opcodes descriptions 2016-01-23 22:43:11 +01:00
Maijin
6f7085e1ba Add description for 8051 opcodes 2016-01-23 22:27:24 +01:00
Maijin
eac6daf88b Add more asm description for MIPS
Add more asm description for MIPS
2016-01-23 21:31:06 +01:00
deffi420
e7fdedd501 Improve r_hex_str2bin, fix overflow and error check 2016-01-23 11:53:43 +01:00
Kamil Rytarowski
0d827a2870 NetBSD: Fix warnings for array subscript has type 'char' 2016-01-22 21:36:30 +01:00
pancake
0d0e4e985d Fix support for capstone3 2016-01-22 20:53:15 +01:00
pancake
59a7b7cda7 Handle r8-r15 in push/pop for x86-64 in x86.nz assembler 2016-01-22 17:47:41 +01:00
condret
5a300e09e8 fix r_io_section_rm 2016-01-22 15:38:12 +00:00
Pavel Borzenkov
f1a9852362 Fix 'radiff2 -g' crash
No all users of r_diff_buffers_distance() pass a pointer for 'distance'
argument. Check for NULL before assigning a value to it.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2016-01-22 15:17:22 +01:00
pancake
1fc7dd4cf6 Check mallocs in PE 2016-01-22 15:16:27 +01:00
Jeffrey Crowell
462bd1da4c s/poped/popped 2016-01-21 17:21:11 -05:00
pancake
9c39df6806 Fixes on previous commit 2016-01-21 04:03:49 +01:00
Jeffrey Crowell
8f0342166c fix Missing last '}' in pdfj output #3987
closes #3987
2016-01-20 21:01:05 -05:00
pancake
5198c3b1a9 Bump capstone and sdb from git 2016-01-20 16:29:20 +01:00
condret
e9aa1bfa80 hardening 2016-01-20 16:13:30 +00:00
pancake
d51f4fb346 Fix w32 build 2016-01-20 04:29:45 +01:00
condret
ccab168cb5 fix a memleak and implement esil.stacksize for @crowell 2016-01-19 23:36:21 +00:00
Jeffrey Crowell
438071e8e1 add a directive for esil stack size
should eventually be configurable and allocated in vm init, but not
right now.
2016-01-19 15:33:33 -05:00
condret
5418e20432 fix dup and swap in esil 2016-01-19 21:17:09 +00:00
pancake
de22aa46f2 Fix COV with boolified r_io_creat 2016-01-19 13:16:24 +01:00
pancake
5f8697f10a Fix #3972 - Use API instead of command for named functions 2016-01-19 00:44:24 +01:00
pancake
16018c273d Fix possible null deref if corrupted plugin loaded 2016-01-19 00:35:13 +01:00
Álvaro Felipe Melchor
d9e77ca0d1 xnu: first series of patches to use mach exceptions
* use set_trace_bit and clear_trace_bit macros

* use PT_ATTACHEXC since PT_ATTACH will be deprecated in the future
and we are interested in receiving mach exceptions

* first attempt to handle mach exceptions

* api change: added a parameter to r_core_setup_debugger
at least in OS X this function was producing double attachment.
I've added a boolean value to indicate when use dpa.

* added pipe to communicate between main process and traced process
by far this is not a good implementation. We should develop a better
approach/design to save all the exceptions and handle them accordingly.
This is the initial implementation

* bring back ptrace for stability and in order to merge this into master
2016-01-18 22:24:16 +01:00
Maijin
ebed8e45f1 to is now disable in Sandbox 2016-01-18 21:51:15 +01:00
Anton Kochkov
1cb9fa091d Fix Android MIPS64 and x86 building 2016-01-18 22:25:00 +03:00
pancake
31ee717f81 Fix latest coverities 2016-01-18 11:15:02 +01:00
Álvaro Felipe Melchor
34fde89422 Fix #3969 2016-01-17 22:12:05 +01:00
Maijin
94c4b5de11 Fix issue with cached dll 2016-01-17 22:10:46 +01:00
Maijin
5b4745d7d2 Cached dll ordinals are now lowercase Fix #3962 2016-01-17 21:17:07 +01:00
jvoisin
3b7d9c42fc Use letters as well as numbers for ahi bases 2016-01-17 19:34:30 +01:00
fenugrec
2abdee6a43 libr/cons/cons.c::palloc() : add some sanity checks:
- add bounds checking for int arg
- don't touch .buffer and .buffer_sz if malloc fails
2016-01-17 19:24:53 +01:00
Maijin
628ee9716e Complete remaining regprofile and Fix #3947 2016-01-17 14:23:15 +01:00
Maijin
59d5b8b73f Complete more reg profile #3947 2016-01-17 14:13:04 +01:00
Maijin
d72683204f Add several missing cached dll ordinals 2016-01-17 13:07:32 +01:00
Maijin
05a0c139fa Add KERNEL32.sdb #3965 2016-01-17 11:57:33 +01:00
Maijin
dec50ae9d4 Add is_vb6 check in bin_pe 2016-01-15 16:37:14 +01:00
pancake
f58e037c52 Fix #3957 - Old DUP was in fact NUM 2016-01-15 03:28:11 +01:00
pancake
608f4f7296 Fix #3957 - Add NUM for the old DUP 2016-01-15 03:24:52 +01:00
pancake
c831afedcc Fix #3960 - crash in pD - 2016-01-15 03:16:06 +01:00
Y. Sapir
66225b9ee1 Filter unselected flagspaces in r_flag_get_at. 2016-01-15 03:11:55 +01:00
pancake
43d5c2b327 Add aea{nrw} subcommands to show and help for aea 2016-01-15 02:51:49 +01:00
pancake
94f822ebe7 Fix #3949 - aea command to list regs used in a range 2016-01-15 01:50:08 +01:00
pancake
3b4fc2cf9a Fix #3950 - Implement asm.emustr 2016-01-15 00:17:28 +01:00
Maijin
6ee48d5abe Add missing registers in anal_x86_udis.c #3947 2016-01-14 23:48:40 +01:00
pancake
8839fad03e Fix scr.fix_{columns|rows} 2016-01-14 23:41:14 +01:00
Maijin
2e40ab8c5c Add "missing" registers in anal_x86_cs.c #3947 2016-01-14 23:31:25 +01:00
pancake
3535c284e1 Handle '?' and 'u' keys in r_cons_less 2016-01-14 23:27:09 +01:00
pancake
dd08af0158 Remove unused code 2016-01-14 14:58:02 +01:00
pancake
666d457708 Add rabin2 -O e/new-entrypoint-address (ELF only atm) 2016-01-14 14:42:36 +01:00
pancake
6e0956f237 Initial wip SPARC register profile 2016-01-14 14:16:10 +01:00
pancake
0af7cf1209 Fix dcs - continue until syscall 2016-01-13 22:25:08 +01:00
pancake
9051fed9e9 Fix #3951 - rarun2 with stdin and support for strings 2016-01-13 22:15:13 +01:00
Jeffrey Crowell
82d1ba53af show the acutal function next to the variables 2016-01-13 09:59:31 -05:00
Jeffrey Crowell
2b6203e2fa show the vars and args, fix a small leak. 2016-01-13 00:35:14 -05:00
Jeffrey Crowell
e8332fef8c start adding var editing experience to vmenu 2016-01-13 00:23:49 -05:00
DZ_ruyk
69b0e9f6ef anal af helpmsg fix 2016-01-13 02:43:50 +01:00
pancake
2fed275e04 Handle few x86-16 instructions in x86.nz 2016-01-12 17:37:19 +01:00
Maijin
02041f3193 Add -d,-w,-b subregisters in darwin-x64.h 2016-01-12 17:35:18 +01:00
Maijin
515f6e8753 Add -d,-w,-b subregisters in linux-x64.h 2016-01-12 15:56:23 +01:00
pancake
399a1b82c9 Human-friendly registers sort in linux-x86-64 reg profile 2016-01-11 23:47:49 +01:00
pancake
beb2dd2f3f Enhance asm.nodup to support invalid instructions and count them 2016-01-11 22:28:22 +01:00
pancake
fe49555c1d Fix #3944 - crash regression in dietline 2016-01-11 12:04:08 +01:00
pancake
fea5e916a6 Fix #3861 - radiff2 -s is no longer killing 2016-01-11 03:18:43 +01:00
pancake
367e9eec47 Some wip work for conditional arm esil emulation 2016-01-11 03:02:23 +01:00
pancake
f2b449bd36 Fix for auto-thumb in .dr* 2016-01-11 03:15:20 +01:00
pancake
6c931a091f Automatic asm.bits depending on CPSR's Thumb bit 2016-01-11 03:08:24 +01:00
pancake
9bd4e213b2 Enhance cpsr in ARM and handle new bitsize syntax in reg profile 2016-01-11 02:35:57 +01:00
pancake
8e25f942f2 Fix #3821 - Add x86.nasm in default plugin list 2016-01-11 01:42:19 +01:00
pancake
5eea48f3a8 Fix #3915 - respect endianness in ? numstr 2016-01-11 01:39:15 +01:00
pancake
fc8ebbebc3 Fix breakpoints issue in ARM 2016-01-11 01:43:05 +01:00
pancake
5badc6acc2 Show more disasm preview in Ve 2016-01-11 00:40:14 +01:00
pancake
11d5503cf8 Fix null deref in dietline 2016-01-11 00:31:07 +01:00
pancake
a362dcf6d9 Update sdb and fix more null derefs caused by mem exhaustion 2016-01-11 00:24:18 +01:00
pancake
9dc6cfa4ea Fix #3926 - Fix color wrap for long lines in visual mode 2016-01-10 23:46:33 +01:00
skuater
6b752ce77e add ^V (paste windows clipboard) support for windows console 2016-01-10 23:05:43 +01:00
pancake
a778b467a0 Initial i4004 analysis plugin 2016-01-10 23:03:27 +01:00
pancake
5ed63681b4 Fix #3921 - do not show dupped instructions with asm.nodup 2016-01-10 22:31:20 +01:00
Maijin
ce7fe3bc3c Add MSVBVM60.sdb.txt 2016-01-10 21:25:51 +01:00
skuater
e31cb0fe4b fix dr7 mask value 2016-01-10 17:58:29 +01:00
pancake
23e7fbb398 Avoid repeated commands in sandbox mode 2016-01-10 12:10:38 +01:00
mrmacete
ad976233d4 arm ESIL improvements:
+ added UBFX, UXTB, RSB, BIC instructions
+ added generic support for shifted registers ARG function
+ small fixes, taking into account 2 and 3 operators version of instructions
+ handling memory shift in non-pc based LDRs too
2016-01-10 11:58:07 +01:00
Maijin
f4c2b98d63 Add some missing description for x86 opcodes 2016-01-09 11:21:50 +01:00
akrasuski1
c33af2d540 Added real telescoping.
Right now, the telescoping works only one level deep: something points to something. This commit adds recursive telescoping, similar to gdp-peda's.
Sample screenshot: http://i.imgur.com/JsThuTD.png.

Uses hex.depth which is 5 by default
2016-01-09 03:15:09 +01:00
pancake
7bef915a8d Implement arC/drC to show comments in regprofiles 2016-01-09 03:14:18 +01:00
pancake
056e933bdf Fix #3920 - Implement NEG in x86.nz 2016-01-09 00:22:13 +01:00
Riccardo Schirone
a20562d6e8 util/print: fix glitch when cursor is on . at the end of hexpairs
* fix visual instruction alignment when using asm.bytespace
2016-01-08 23:33:57 +01:00
Jeffrey Crowell
8ede2fd32c fix infinite loop in graph minimize_crossings
see
https://github.com/praetorian-inc/angr/tree/binaries/tests/binaries/tests/x86_64
for test binary
2016-01-08 20:50:46 +01:00
Florent Jacquet
abf53ba969 Fix issue #3918: pointer size in pf 2016-01-07 16:39:56 +01:00
pancake
e007cf8c71 Fix last coverities 2016-01-07 14:08:25 +01:00
pancake
19a83e1a15 Use op->shift.value instead of op->mem.lshift for LDR in ARM ESIL 2016-01-07 13:49:16 +01:00
pancake
ececf1dcc6 Use snprintf and pnumleft in the ahi2 filter 2016-01-07 13:11:05 +01:00
DZ_ruyk
010e997c3e Fix for issue #3766 2016-01-07 12:38:00 +01:00
pancake
8686a35ab7 ESILify the XCHG and XADD ops for x86 2016-01-07 12:04:26 +01:00
pancake
d2a192cffc Fix #3760 - Honor iOS/OSX pre-map memory reads in io.mach 2016-01-07 01:23:14 +01:00
DZ_ruyk
0e8b42787a Boring typo fixes
Can't -> Cannot (since most of error messages use second form)
2016-01-07 00:13:54 +01:00
pancake
7bd536263d WIP Fix ESIL for LDR instructions in ARM 2016-01-07 00:05:12 +01:00
pancake
3ac5ccbbe1 Fixes for the LDR ARM instruction (wip) 2016-01-05 01:02:33 +01:00
pancake
b1a9899dc1 Fixes for #3846 - agg help messages 2016-01-05 00:47:41 +01:00
Riccardo Schirone
3e40ca0a93 core/graph: extend r_core_visual_graph to accept a graph
Now it is possible to pass an already initialized RAGraph that can be
used in interactive mode, without being based on a function.
2016-01-05 00:36:26 +01:00
Alberto Ortega
dbb199e4a5 New bin plugin with initial Nintendo 3DS support. It loads decrypted FIRM files. 2016-01-04 01:08:32 +01:00
zlowram
dc828478a8 Implemented Sda command 2016-01-04 01:05:11 +01:00
Jaume Delclòs Coll
24560f004c ESIL for ARM's MSR instruction 2016-01-04 01:02:43 +01:00
Jaume Delclòs Coll
05c56ad2f2 esil: make DUP dup, add SWAP 2016-01-04 01:02:43 +01:00
zlowram
a494a59901 Get current section baddr if multiple files are open 2016-01-03 03:12:33 +01:00
zlowram
abc5575dfc Fixes for #3899 and #3902
- If lines.from is 0, sl 1 seeks to baddr
- Added sll command to show total number of lines and removed the other
messages
2016-01-03 03:11:16 +01:00
pancake
6f47901a06 Clarify r_io_section_mget->_in api and use the heap for section->name 2016-01-03 03:08:58 +01:00
pancake
23c81e7642 Fix int->bool issue after de-boolt-ification 2016-01-03 02:38:14 +01:00
pancake
9e129a793c Fix '& cmd' task state 2016-01-03 02:32:56 +01:00
pancake
42acaa7596 Softly kill boolt type 2016-01-03 02:05:26 +01:00
pancake
4c4bfd11c2 Enforce size in section.findMatching 2016-01-03 01:40:09 +01:00
pancake
a93ecf2b69 Fix #3898 - Persistent section name in project files 2016-01-03 01:36:16 +01:00
pancake
6f346b6d6d Fix #3901 - Cannot debug directories and follow symlinks 2016-01-03 01:28:02 +01:00
Florian Mauracher
8ff4b566b3 Fix stack configuration options in visual debug mode
Re-enable the cmd.stack and stack.{anotated,size,delta,bytes}
configuration options, which were previously overwritten before every
refresh by the default format string.
For this, integrate the dbg.slow option into the general debug format
configuration.
2016-01-02 11:40:04 +01:00
Anton Kochkov
0dbad32d34 Fix #3897 2016-01-01 01:55:06 +03:00
pancake
5132a499c2 Fix many coverities 2015-12-31 17:10:02 +01:00
Iñaki Rodríguez
da033d6b79 Get the first flag coincidence in autoname 2015-12-31 14:58:49 +01:00
pancake
4618834f26 Do not show search help on invalid commands 2015-12-31 14:13:28 +01:00
pancake
4e6be05f62 ARM's SP is r13 and add LR in r14 2015-12-31 14:10:11 +01:00
Álvaro Felipe Melchor
c939ba7da9 Fix #3852 & changes in midflags 2015-12-31 02:10:18 +01:00
Eloi Sanfelix
b857bf3b06 Fixed accept prototype for linux x64 and darwin 2015-12-31 02:07:21 +01:00
pancake
15b2eff455 Fix #3885 - implement uname 2015-12-30 12:43:15 +01:00
Álvaro Felipe Melchor
e9a8431b7a Fix #3890 2015-12-29 22:35:37 +01:00
pancake
6f5f32bb17 Fix #3877 - Add comments in graph mode 2015-12-29 18:17:33 +01:00
pancake
efc01fe6c0 Aim to fix #3870 - dwarf crash 2015-12-29 18:11:14 +01:00
Judge Dredd (key 6E23685A)
60ecab6324 fix anal.bbline with scr.utf8 bug 2015-12-29 17:59:15 +01:00
pancake
afe90d520b Fix build for apple tv and watch simulators 2015-12-29 17:58:34 +01:00
zlowram
c916d1ca18 Fixed bug in r_core_lines_initcache 2015-12-29 11:38:04 +01:00
pancake
151fab32a3 s/LIBC_HAVE_SPAWN/..FORK/g 2015-12-29 05:43:00 +01:00
pancake
b728b48123 Native tvOS/WatchOS support, non-fat libr.a and mach0 identification for them 2015-12-28 20:40:18 +01:00
pancake
e56be2fbd5 More multi-arch static build archive fixes for iOS/OSX/tvOS/WatchOS/*OS 2015-12-28 18:31:05 +01:00
zlowram
db8fbcc68b Added config variable to set absolute or relative lines 2015-12-28 16:44:26 +01:00
pancake
1d8b761ca1 Various static and iOS related build issues are now fixed 2015-12-28 02:01:45 +01:00
pancake
e91024c279 Fix #3827 - Implement r_anal_var_delete_byname() 2015-12-28 02:01:41 +01:00
Anton Kochkov
8347a07eda Add missing help for afv* command 2015-12-27 23:39:43 +03:00
Anton Kochkov
6d7f440873 Add missing help for ee command 2015-12-27 23:32:18 +03:00
Dax
b8b0b3e73e Adjusted zignature help 2015-12-27 17:05:29 +01:00
Dax
31a9be7b98 Validate z/ input 2015-12-27 17:05:29 +01:00
pancake
dae75dacfa Fix null deref in r_core_free and add naked.h 2015-12-27 02:33:53 +01:00
Maijin
776aee4dcc ROM section is now executable
ROM section is now executable
2015-12-25 22:18:19 +01:00
DZ_ruyk
51ae0129c7 Fixed PE export functions address calculation 2015-12-24 16:04:59 +01:00
pancake
a224ffc1ac Fix #3829 - bug when removing a comment 2015-12-24 15:30:25 +01:00
pancake
f29a33893a Fix zb signature crash 2015-12-24 15:13:17 +01:00
zlowram
91611e8cbb Implemented slc subcommand and slc? help. prl now uses lines cache if
available.
2015-12-24 13:18:09 +01:00
Dax
e350505f7b Implemented 'zp' command 2015-12-24 12:24:05 +01:00
pancake
d6974f7081 Fix #3829 - Fix V;- glitch 2015-12-22 23:09:23 +01:00
pancake
d49f6dcf7b Fix #3781 - 64bit ahi issue 2015-12-22 22:59:57 +01:00
pancake
aeeda9ea4f Allow unlimited length in signature namespaces and items 2015-12-22 22:52:04 +01:00
pancake
e1536c99cf Initial support for ARM64 local variables and arguments analysis 2015-12-22 15:57:09 +01:00
pancake
3d1eec808f Fix regression with undefined behaviour 2015-12-22 02:52:13 +01:00
pancake
6de6f35b30 Fixes for sl and lines.* eval vars 2015-12-22 02:33:09 +01:00
zlowram
b371b9a4f7 Implemented 'sl' command
- Fixed tabs indentation
 - Using r_num_math instead of atoi
 - Fixed warning and used R_SNEW0 instead of calloc
2015-12-22 02:32:33 +01:00
pancake
6a274bd3c6 Initial import pds|pdsf to disassemble only strings 2015-12-21 15:53:53 +01:00
Álvaro Felipe Melchor
fff125e54e Fix #3862 null dereference 2015-12-20 20:55:11 +01:00
jvoisin
3727f0794d Change the anti pattern if (A) free (A); for free (A); 2015-12-20 19:28:39 +01:00
Jeffrey Crowell
fdba4bca4d prevent scrolling past end of fcn list in vmenu 2015-12-20 13:12:16 -05:00
Jeffrey Crowell
d814386aeb speedup vmenu function view on long functions 2015-12-20 12:28:46 -05:00
pancake
bf813c252c Fix null-terminated strings issue in bootimg rbin plugin 2015-12-19 17:29:48 +01:00
pancake
2c047083e3 Fix asm.filter issue in some ARM64 instructions 2015-12-19 17:04:01 +01:00
Judge Dredd (key 6E23685A)
746f2dcc34 Fix oa double free #3858 2015-12-19 16:52:29 +01:00
Jeffrey Crowell
82fbd87a7a fix number of fcns before you go off cons 2015-12-18 18:30:33 -05:00
Jeffrey Crowell
2ca166ae80 fix crash if you Vv before anal 2015-12-18 18:15:13 -05:00
Jeffrey Crowell
89ee004a8b fixup vmenus (leak, full fn) 2015-12-18 17:41:14 -05:00
Jeffrey Crowell
d1dc4b0267 fix null deref in cmd_debug ddw closes #3860 2015-12-18 15:57:03 -05:00
Jeffrey Crowell
7f1c766296 show full function when possible on vmenu
if we can't show the full function, just print to fill the screen
2015-12-18 15:53:51 -05:00
pancake
65aef74a73 Initial support for Android BOOT images 2015-12-18 20:08:05 +01:00
pancake
a991e008d1 Fix Vk scrolling in hexdump view 2015-12-18 19:53:54 +01:00
Jeffrey Crowell
a594c79b96 enhance vmenu to show entire function if possible
otherwise show some hopefully useful amount
2015-12-17 08:41:16 -05:00
Riccardo Schirone
530daf5420 cons/dietline: set right buffer.index when autocompleting
Fix #3856
2015-12-17 10:18:06 +01:00
Joshua Wang
415263a0d5 info_array is freed on xnu_debug.c:737 and again on xnu_debug.c:744 resulting in double free 2015-12-16 22:10:23 +01:00
pancake
1d0768bf74 Fix asm.emu in projects 2015-12-16 22:07:30 +01:00
pancake
d75f77038f Fix afF in projects 2015-12-16 21:57:50 +01:00
Maijin
712855a210 Add help for f4 key in Visual mode
Add help for f4 key in Visual mode
2015-12-16 20:42:21 +01:00
Maijin
5ec0a6e537 Add f4 dcu to cursor fix #249
Add f4 dcu to cursor fix #249
2015-12-16 20:35:45 +01:00
Maijin
af10e7fc79 Add seek history for "." in Visual mode
Add seek history for "." in Visual mode
2015-12-16 19:58:54 +01:00
pancake
f264b1d1e3 Fix pdf on folded function issue 2015-12-16 15:30:13 +01:00
murphy
1b5f5d674e Add support to show comments and function name in axt 2015-12-16 14:44:08 +01:00
pancake
7ee1ff6816 Fix spawn and >1024 buffer issue in r2pipe.c 2015-12-16 12:00:31 +01:00
alvaro_fe
a6e4d6b93e Fix #838 2015-12-16 11:40:23 +01:00
Jeffrey Crowell
d1b5b6ee62 fix doc for x86 enter 2015-12-15 17:56:02 -05:00
pancake
4180c8e439 Fix some null derefs in r2pipe C api 2015-12-15 15:34:38 +01:00
pancake
69b974eca3 Fix afv-* 2015-12-15 02:08:53 +01:00
pancake
25892b084a Show comments in folded functions 2015-12-15 01:03:42 +01:00
pancake
2f9623786f More fixes for the folded functions in disasm 2015-12-15 00:37:33 +01:00
pancake
d0444bbe15 Fix multiple folded functions glitch in disasm 2015-12-15 00:18:44 +01:00
pancake
e955a2a58f Implement aggd command to output agn/age graph in graphviz format 2015-12-14 23:23:08 +01:00
Dima Turchenkov
061c0acbab fixes for jmptbl 2015-12-14 21:28:24 +01:00
Dima Turchenkov
ca26ad47da also don't analyze function twice and get normal xref-s for aac 2015-12-14 21:28:24 +01:00
Dima Turchenkov
2bcf5cc8c2 fix for list corruption 2015-12-14 21:28:24 +01:00
Dima Turchenkov
f089d2f330 fix for bbs alignment 2015-12-14 21:28:24 +01:00
alvaro_fe
5a7058b5a3 Fix heap use after free 2015-12-14 21:27:00 +01:00
pancake
96e63a55a9 Fix clang build 2015-12-14 15:14:35 +01:00
pancake
959c61671e Indentation fixes 2015-12-14 15:01:25 +01:00
pancake
965d789c4a Update indentation in some more random files 2015-12-14 14:32:18 +01:00
pancake
98578e2452 Fix two issues in the fcn analysis 2015-12-14 13:51:55 +01:00
pancake
1f647dd2e6 Refix #3785 2015-12-14 12:11:34 +01:00
pancake
ff5f215d76 Another workaround for afterjmp 2015-12-14 12:07:26 +01:00
pancake
84616baaa8 Fixes for eobjmp and jmptbl 2015-12-14 11:18:26 +01:00
pancake
a3d8a3a50d Fix asm.emu regression 2015-12-14 10:57:50 +01:00
pancake
07610b8e83 Fix dup hit issue in /c 2015-12-14 10:56:36 +01:00
pancake
db5a76f8b3 Initial support for fold/unfold functions with afF and Vz 2015-12-14 10:19:07 +01:00
pancake
71536f3fd9 Fix #3833 - af[av]t to change type of variable 2015-12-14 02:25:07 +01:00
pancake
bfcdc09479 Only attach from config.c if cfg.debug is set 2015-12-14 02:24:57 +01:00
Jaume Delclòs Coll
37e793f58e proper virtual address for GBA ROMs 2015-12-12 11:36:19 +01:00
Riccardo Schirone
af62362fb1 core/anal: complete the list of analhint commands to print 2015-12-11 00:45:47 +01:00
Dima Turchenkov
7c8fe76de3 bb_max_size 2015-12-11 00:40:11 +01:00
Dima Turchenkov
c7fdb730ee bbs_alignment 2015-12-11 00:40:11 +01:00
pancake
6dc0bd41c1 depgraph for r2 ascii graphs, agn doesnt requires body now 2015-12-10 22:45:00 +01:00
Dima Turchenkov
eed20d3bca bugfix 2015-12-10 15:15:56 +01:00
Dima Turchenkov
34022329d8 normalize flirt names 2015-12-10 15:15:55 +01:00
pancake
f2368bc909 ESIL (null) fixes for imul on x86.cs 2015-12-10 10:05:36 +01:00
Ricardo Quesada
2c3fdba551 Fix for bug 3788
- `r_io_read` calls `r_io_read_at` with vaddrs, and not with maddr
- `r_io_section_maddr_to_vaddr` uses a reverse iterator to check the
  sections
- adds `r_io_section_mget_prev`: this function can be removed if the
  behavior of `r_io_section_mget` is changed to use a reverse iterator

Squashed commit of the following:

commit a31d359bf1c79b92f518fa8237c7f9d4cf146577
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Wed Dec 9 11:40:54 2015 -0800

    fetches sections starting from the back

commit 0b687439ea6225c8db9f387cc93bc53300e297a7
Merge: 8485676 92c1631
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 23:40:35 2015 -0800

    Merge branch 'master' of https://github.com/radare/radare2 into revert_3788

commit 8485676cf5c042d8c4e10c798b4fadb1a43df50c
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 23:09:05 2015 -0800

    This seems to be the "correct" patch...

    ...but it breaks some tests... apprently searches a few bytes
    out of the section creating some false-positives hits

    I'm just commiting this PR to give an idea of where the bug is

commit 2e4b8de397a4ef23c02c3e08113cf6b984479275
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 22:46:29 2015 -0800

    not good... reverting

commit 324afba7e2853ddb72750f7f8b38bf59af310873
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 22:09:25 2015 -0800

    workaround for bug 3788

commit 6e6283eaa18edcca1987a8f4227f163a6926c430
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 15:14:12 2015 -0800

    Reverts fix for bug #3788

    please, reopen bug #3788
2015-12-09 22:20:54 +01:00
Álvaro Felipe Melchor
32c743dd98 Fix #3774 2015-12-09 19:33:36 +01:00
Dima Turchenkov
3de9e43ecb get functions size from flirt signatures 2015-12-09 17:01:34 +01:00
Dima Turchenkov
4043c362c7 don't follow data references twice 2015-12-09 17:01:34 +01:00
pancake
5ce1194dab Keep root class address when meta class is found 2015-12-09 16:56:26 +01:00
pancake
3961728eaf Fix objc regression and initial metaclass support 2015-12-09 16:54:05 +01:00
pancake
c6ebab5f19 Some more objc parsing endian fixes and refactor 2015-12-09 16:01:51 +01:00
pancake
92c1631a06 More indent fixes 2015-12-09 00:41:44 +01:00
pancake
cfb03d3772 More indentation fixes 2015-12-09 00:27:31 +01:00
pancake
a4fc08b401 More auto-indentation enhancements 2015-12-08 23:55:23 +01:00
pancake
b5e093fc45 Indent io/io.c and fix an issue in the .sh 2015-12-08 22:35:39 +01:00
Asger Hautop Drewsen
c72cd131ee Fix syntax choice for asm_x86_as 2015-12-08 21:32:15 +01:00
Ricardo Quesada
8b7bfbd6ad fixes cmd.hit for bug 3788 2015-12-08 21:09:30 +01:00
Dima Turchenkov
fc9d007a41 ut32 buf_size 2015-12-08 17:29:36 +01:00
Dima Turchenkov
c086a74e8f additional checks for architectures to detect endianness 2015-12-08 17:29:36 +01:00
Dima Turchenkov
e521a0b31b ut16 bufsz 2015-12-08 17:29:36 +01:00
Dima Turchenkov
c290f6ef89 flirt bugfix 4 2015-12-08 17:29:36 +01:00
Dima Turchenkov
21234a059b flirt bugfix 3 2015-12-08 17:29:36 +01:00
Dima Turchenkov
75fb2e8a54 flirt bugfix 2 2015-12-08 17:29:36 +01:00
Dima Turchenkov
3f191c1140 flirt bugfix 2015-12-08 17:29:36 +01:00
Dima Turchenkov
229836c97a enlarge buffer for probing data references 2015-12-08 17:29:36 +01:00
Dima Turchenkov
d21d19c450 strange delphi artifact in PE header causes this bug 2015-12-08 17:29:36 +01:00
pancake
75ea729679 Fix regression in t.anal/x86/emu 2015-12-08 16:49:15 +01:00
pancake
0880d7d4f5 Some refactor/cleanup for agf and io cache (wip) 2015-12-08 14:59:30 +01:00
pancake
991c39a601 More whitelisted auto-indented files 2015-12-08 13:24:21 +01:00
pancake
7863995cca Oops missing .h update 2015-12-08 13:03:38 +01:00
pancake
d24d069ade Initial work on automatic indent whitelisting 2015-12-08 12:55:29 +01:00
pancake
aac116bc8f Fix r_io_map_get 2015-12-08 01:54:05 +01:00
pancake
61fba1e663 Fix #3807 - write on maps issue 2015-12-07 22:35:34 +01:00
mrmacete
eb51d68d3a esil_step: little refactoring, merging conditions 2015-12-07 21:53:17 +01:00
mrmacete
4271944c08 mips: ported to new ESIL-based delay slot simulation 2015-12-07 21:53:17 +01:00
mrmacete
dac375c541 Delay slot simulation state in ESIL
+ added $ds, $jt, $js internal registers
+ added read / write capability for internal registers in ESIL instructions
+ esil_step 'aes' command ported to new delay slot state handling
2015-12-07 21:53:17 +01:00
mrmacete
99153f05f9 mips: little non-esil fixes 2015-12-07 21:53:17 +01:00
François Revol
797a2efc81 C89
(duplicate ; is treated as an empty statement)
2015-12-07 21:48:44 +01:00
François Revol
8439c5f683 Only use gcc's visibility attribute starting from 4.0
cf. https://gcc.gnu.org/wiki/Visibility#Step-by-step_guide
2015-12-07 21:48:44 +01:00
Álvaro Felipe Melchor
7f95042491 workaround for #3774 2015-12-07 18:56:25 +01:00
pancake
9f72edbd67 Honor more base address in search hits 2015-12-07 18:37:16 +01:00
Ricardo Quesada
f1cbbb13f3 fix for bug 3788
The problem is that if the file is mapped, then base address
is incorrect.
Not sure if there is a better way to fix this bug though
2015-12-07 17:54:56 +01:00
Álvaro Felipe Melchor
0537a72e9b cleanup elf and fix #3774 2015-12-05 21:00:51 +01:00
Álvaro Felipe Melchor
35860ebd5e fix heap-use-after-free 2015-12-05 19:56:56 +01:00
Dima Turchenkov
984dfc3c17 Improve data references analysis: search for functions pointers 2015-12-04 14:06:03 +01:00
pancake
327597f949 Some objc code cleanup, still looking for a bug 2015-12-04 13:14:55 +01:00
pancake
8eabe785fe Boolify RDebug API 2015-12-04 02:57:56 +01:00
pancake
cc402a76c5 More refactorings towards a ptrace-free iOS/OSX debugger 2015-12-04 02:44:36 +01:00
pancake
fb8345276a Kill child if no perms to debug after spawn in OSX 2015-12-04 00:21:06 +01:00
pancake
0aa5724712 Fix #3793 - Fix ARM B/BL/CB sign extend jump destinations 2015-12-03 23:25:53 +01:00
pancake
8dedcf406b Fix #3785 - Fix refline colors in arg/var with custom color theme 2015-12-03 14:48:15 +01:00
Dima Turchenkov
fcbbb5e12e option: analyze function references as well if function is broken 2015-12-03 12:41:52 +01:00
Dima Turchenkov
9a929fff84 set function size as length of continuous sequence of bbs 2015-12-03 12:41:52 +01:00
lzmths
fb6370c421 Cleaning conditional directives that break statements. 2015-12-03 12:35:10 +01:00
mrmacete
239dec9a87 Delay slot using goto repeat
+ this permits to handle invalid instructions fairly in the delay slot
2015-12-02 12:44:13 +01:00
mrmacete
81cbe04c7c implemented delay slot in esil_step
+ the delayed instruction is executed first
+ and then flow continues normally
2015-12-02 12:44:13 +01:00
fabs
bc0bd43be6 Honor anal.depth in aac. 2015-12-01 21:17:29 +01:00
pancake
b331ba86f7 Fix problem with C++11 2015-12-01 13:10:54 +01:00
pancake
40e08dbd89 Get rid of _Bool 2015-12-01 12:39:12 +01:00
pancake
bf54c766f3 6502 is also for Tamagotchis 2015-12-01 12:06:10 +01:00
mrmacete
64fb61706d fixing coverity defect CID 1341049
+ it was because mips.operands has length 8
2015-11-30 09:33:40 +01:00
pancake
c4e0ac2885 Fix rabin2 -O sync issue and update manpage 2015-11-30 00:10:28 +01:00
Riccardo Schirone
5311241537 core/disasm: add '~' mark when midflags is into effect
'~' is used to notify the user that the instruction is using some bytes
of the next instruction because of asm.midflags.
2015-11-29 12:25:31 +01:00
Ricardo Quesada
e4182b943d More symbols for the VSF file format parser
- removed verbose debug eprints
- Fixes warnings and compilations errors
- more symbols: SID and VIC
- removes NMI/IRQ symbols.
- removes IRQ entry
2015-11-29 12:18:00 +01:00
Ricardo Quesada
f5c65f5da8 Adds VSF (VICE Snapshot File) support as a bin format
VICE is the most popular C64/C128 emulator and allows
users to save snapshots of the games.

Analyzing VICE snapshots are more useful than
analyzing .prg (the "standard" c64 program)
because usually all .prg are compressed, and
are decompressed in runtime.

commit 796297c6cd3a099fd17ad3715b4ed5646a6a9e65
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Fri Nov 27 12:28:58 2015 -0800

    no sbd for the moment

commit c785b22318c3cacf7771ab21198aa759777224af
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Fri Nov 27 10:06:12 2015 -0800

    bank 0 and bank 1

commit 63304876b6f84df001c39f5b35084ff6e61bc01b
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Fri Nov 27 09:47:12 2015 -0800

    c128 includes basic, monitor and editor sections

commit 1a8995a644df6d9e871a586e57c3cd8e00cce7ae
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Thu Nov 26 14:45:36 2015 -0800

    c128 roms...

    uses sdb which is not used at all
    more vic symbols

commit 8a29c3c7736fcf689b9248e65093277347ae38bc
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Nov 24 10:39:44 2015 -0800

    ram last entry

commit fca46301b2fd68e230cf547047a5278e098c9340
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Nov 24 00:10:20 2015 -0800

    more tidy code

commit 03b8a12b319bd0eb9f21b60d882da2030c2c35f1
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Mon Nov 23 22:52:20 2015 -0800

    VSF works for C64... still many things to fix

commit a118a930cb40441b412db916deb4c0ca30e30309
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Mon Nov 23 13:37:32 2015 -0800

    initial commit... compiles and detects VICE

    but nothing more
2015-11-29 12:17:05 +01:00
mrmacete
c6f7dab14c mips: unsigned immediates 2015-11-28 10:24:03 +01:00
mrmacete
89fb2d29c5 mips: fixed neg / negu 2015-11-28 10:24:02 +01:00
pancake
ad6baf0824 Add rpath and scnperm in rabin2 -O 2015-11-27 20:37:27 +01:00
Riccardo Schirone
065728c42d parse/p: fix asm.relsub when replaced string is longer than original
fix #3768
2015-11-27 20:37:19 +01:00
Riccardo Schirone
fce421b0f0 core/disasm: change cursor when in the middle of an instruction
fix #3748
2015-11-27 20:37:19 +01:00
Riccardo Schirone
3989c94c5a core/disasm: fix some corner cases in the cursor display
fix #3747
2015-11-27 20:37:18 +01:00
Álvaro Felipe Melchor
90e338e934 added autocompletion for pfv pfj and fix invalid frees 2015-11-27 16:47:25 +01:00
Maijin
6baaace502 Add entrypoint for SPC700 loader
Add entrypoint for SPC700 loader
2015-11-27 14:03:55 +01:00
pancake
c0f1184ae0 Simplify two return conditions 2015-11-27 13:09:38 +01:00
Dima Turchenkov
05eb32fdd8 Trash filter for data references 2015-11-27 13:06:13 +01:00
Dima Turchenkov
7f935b1114 Fix for broken afna 2015-11-27 13:06:13 +01:00
Dima Turchenkov
898a00d1d4 String search optimization 2015-11-27 13:06:13 +01:00
Dima Turchenkov
c09208909f Small fix for correct return code 2015-11-27 13:06:13 +01:00
Dima Turchenkov
cded3acaba Search string references in data references option 2015-11-27 13:06:13 +01:00
Dima Turchenkov
03c5d606e0 Don't follow data references by default 2015-11-27 13:06:13 +01:00
Dima Turchenkov
68bae51e3c Follow data references for code coverage 2015-11-27 13:06:13 +01:00
Dima Turchenkov
8da849c451 enable jmp/cjmp refs only if they are out of the function boundaries 2015-11-27 13:06:12 +01:00
Dima Turchenkov
3e6b474ca5 Don't jump above function address option 2015-11-27 13:06:12 +01:00
Maijin
e68ed8dd91 Add support for SPC700 file format 2015-11-27 13:03:18 +01:00
mrmacete
3b14470e3f + mips anal: a ';' killed t register 2015-11-27 13:01:56 +01:00
mrmacete
fec89e62fe mips anal improvements
+ extended ESIL coverage
+ testing and bugfix
2015-11-27 13:01:56 +01:00
Riccardo Schirone
0407aab9c5 core/core: add afvn autocompletion
cons/dietline: add support for autocompletion in the middle of the
input, without destroying the other part of the string
2015-11-27 12:57:39 +01:00
Riccardo Schirone
ac3f94217a core/cmd_anal: show help on afv? and afa? even when not in a fcn 2015-11-27 11:47:24 +01:00
Jeffrey Crowell
8878a357a1 fix leak reported by COV 2015-11-27 00:45:06 -05:00
pancake
dd8b7b1e04 Handle PIC field in ART file format 2015-11-26 13:18:11 +01:00
pancake
bfb49516e1 Some minor code cleanup for ART 2015-11-26 12:56:07 +01:00
pancake
b5cb0ba1b1 Fix ood on relative paths 2015-11-26 12:55:47 +01:00
Riccardo Schirone
aeddf25348 core/graph: fix behaviour of pagedown/up and home/end
fix #3688
2015-11-26 10:50:00 +01:00
pancake
85ba262c17 Fix #3761 - Fix drd and add aras command to swap arenas 2015-11-25 15:20:25 +01:00
pancake
e0ce78f08c Fix double reglisting in linux-arm 2015-11-25 12:49:02 +01:00
pancake
2b51bf1acd Fix #3759 - ood on OSX 2015-11-25 11:52:29 +01:00
skuater
513200a7fa Fixes for the w32 debugger 2015-11-24 23:28:50 +01:00
Anton Kochkov
f6d295c2ec Fix the MinGW building
Add the vax.mk for the analysis plugin.
2015-11-25 00:36:18 +03:00
Álvaro Felipe Melchor
d8b269f11f Fix last covs 2015-11-24 21:53:25 +01:00
Álvaro Felipe Melchor
434e9a0986 More cleanup for XNU debug 2015-11-24 21:52:28 +01:00
Riccardo Schirone
c7a444cb39 core/cmd_meta: fix regression with format memory metadata 2015-11-24 12:45:43 +01:00
pancake
07c6a1e41d Fix rabin2 -k crash 2015-11-24 10:17:24 +01:00
pancake
078739dc2b Check if ds->line is null in asm.bbline 2015-11-24 03:11:55 +01:00
pancake
7b7400c392 Support ansi and rgb in rparse 2015-11-24 01:24:47 +01:00
pancake
cffa44b2f7 Add ara command and fix RReg.arena.push/pop implementation 2015-11-24 00:58:03 +01:00
pancake
b172333386 Another isspace regression for ahi 2015-11-23 23:55:44 +01:00
pancake
0f5740d1a5 Fix regression introduced in ahi 2015-11-23 23:33:50 +01:00
pancake
653e09a0aa Fix #3746 - Handle immbase anal hint in all number bases 2015-11-23 23:04:49 +01:00
Álvaro Felipe Melchor
a028adae6f Cleanup for the XNU debugger
clean up in xnu_thread_get_gpr
clean up xnu_thread_set_gpr
updated reg profile
2015-11-23 22:00:25 +01:00
pancake
615dffca0e Fix w32 build 2015-11-23 21:08:04 +01:00
Dima Turchenkov
ad6581f265 Config variables for jmp/cjmp references 2015-11-23 21:04:18 +01:00
Dax
412934d20e Initial PSX Executable Support
PSX Plugin: Deleted useless file
PSX Plugin: Adjusted coding style, minor fixes
PSX Plugin: Removed typo, adjusted makefile, call check_bytes with correct parameters
2015-11-23 20:56:19 +01:00
Álvaro Felipe Melchor
893b094cf7 Fix ffc9406 crash by revskills 2015-11-23 19:00:57 +01:00
Álvaro Felipe Melchor
baa0a26137 Fix #3742 2015-11-23 19:00:53 +01:00
pancake
2ff40ad4d4 Some minor refactoring in visual 2015-11-23 17:09:46 +01:00
pancake
a211cf28ba Some missing sr sp -> sr SP 2015-11-23 16:31:31 +01:00
pancake
0b383eba98 VS step overs also on esil 2015-11-23 16:24:36 +01:00
pancake
861e99a67c Implement basic imul/idiv for x86.cs 2015-11-23 16:17:35 +01:00
Riccardo Schirone
d47216b349 core/graph: fix SEGFAULT on some "complex" functions 2015-11-23 14:40:08 +01:00
pancake
8f34d0cf83 Fixes for anal/w32 2015-11-23 14:38:47 +01:00
pancake
96990424cc Fix #3737 - crash in ahi 1 for huge 64bit nums 2015-11-23 12:45:30 +01:00
pancake
a31cd1101e Initial import of the VAX asm/anal/bin support 2015-11-23 12:34:53 +01:00
pancake
b4308219e7 UJMP also bbsplits 2015-11-23 11:03:10 +01:00
pancake
4c4747aa33 Fix asm.bbline fcnline glitch 2015-11-23 10:30:49 +01:00
mrmacete
b851c62b93 small fixes in anal_mips_cs
+ correct default value for jump/fail
+ detection of conditional jumps (this leads to correct bb detection)
+ using MIPS_REG_RA instead of hardcoding 32, (apparently capstone changed and it isn't 32 any more)
+ fail addresses count +4 for jump delay slots
2015-11-23 10:00:18 +01:00
pancake
dec1760d54 Minor ahi fixup 2015-11-23 02:54:33 +01:00
pancake
d42ecbf95b Some random code cleanup and fixes 2015-11-23 02:36:26 +01:00
pancake
cab871f3e6 Fix #650 - asm.bbline - blankline on every basic block 2015-11-23 01:40:35 +01:00
pancake
25ec4623b4 Fix 3757ca.. objc mach0 crash from @revskills 2015-11-22 23:08:53 +01:00
pancake
7abb81f22a Fix 054164 objc parser crash by @revskills 2015-11-22 23:03:31 +01:00
pancake
5e9bdfcb1a Bring back the OSX debugger (ptrace mode) 2015-11-22 22:29:53 +01:00
pancake
41ef4a008f Fix 3496c4 sample from @revskills 2015-11-22 22:06:53 +01:00
pancake
c8409760e1 Fix getreg on osx regression 2015-11-22 22:01:24 +01:00
pancake
b5333accaa Fix objc demangle crash (thx @revskills) 2015-11-22 21:56:23 +01:00
Ole André Vadla Ravnås
002e701d51 Fix the hardware step get/set logic for 32-bit ARM
Stepping is still not working though, needs more investigation.
2015-11-22 21:48:00 +01:00
Ole André Vadla Ravnås
e87ddc5ced Switch to using the unified thread state on ARM once again 2015-11-22 21:48:00 +01:00
Ole André Vadla Ravnås
197593b24b Remove check for impossible condition
Because `&thread->gpr` cannot be NULL.
2015-11-22 21:48:00 +01:00
Ole André Vadla Ravnås
7894125577 Fix undefined behavior in xnu_reg_read() 2015-11-22 21:48:00 +01:00
Ole André Vadla Ravnås
3e54f43a30 Don't bother with PT_ATTACH on iOS 2015-11-22 21:48:00 +01:00
pancake
92be0bd683 Fix #3722 - afa?/afv? doesnt need a function 2015-11-22 21:45:25 +01:00
pancake
aa2dfd2fe6 Fix #3732 - pdj broken 2015-11-22 21:28:11 +01:00
mrmacete
59e44f0f76 + anal_mips_cs: fixed wrong order of operands in ESIL mem reference with negative offset 2015-11-22 12:35:15 +01:00
Maijin
5886546420 Fix build 2015-11-22 11:39:54 +01:00
pancake
ccfee9fcca Fix many important issues reported by clang-analyzer 2015-11-22 11:27:45 +01:00
pancake
50f8ecaba4 Fix 2015-11-22 02:07:28 +01:00
pancake
88038a85ad Fix some RBinSymbol->name issues and drop null defs (-211LOC) 2015-11-22 01:09:02 +01:00
pancake
94089be030 Fix bin.smd loading 2015-11-12 12:58:33 +01:00
Dima Turchenkov
079ad4e2ef Jump tables #2: indirect simple jump 2015-11-20 16:48:32 +01:00
Dima Turchenkov
5d4001cf13 Jump tables #1: direct jump 2015-11-20 16:48:32 +01:00
Dima Turchenkov
02643892fe Split function if overlaps, do not split inner functions 2015-11-20 16:48:32 +01:00
pancake
f188ef836e Fix java build 2015-11-20 16:08:24 +01:00
Anton Kochkov
afa2b8b9db Fix aep command 2015-11-20 18:23:16 +03:00
pancake
6e67049d6f Fix infinite loop, bring back the java crash to greenify 2015-11-20 14:46:23 +01:00
pancake
ef03bb2f5a Another aac boundary fix 2015-11-20 00:29:16 +01:00
Riccardo Schirone
75eba76561 core/cmd_anal: check if fcn exists before renaming vars 2015-11-20 00:21:41 +01:00
pancake
c69d2cd507 Another aac boundary fix 2015-11-20 00:19:13 +01:00
pancake
7c2f9b2e03 Another aac boundary fix 2015-11-20 00:14:24 +01:00