246 Commits

Author SHA1 Message Date
condret
ccab168cb5 fix a memleak and implement esil.stacksize for @crowell 2016-01-19 23:36:21 +00:00
pancake
23c81e7642 Fix int->bool issue after de-boolt-ification 2016-01-03 02:38:14 +01:00
pancake
42acaa7596 Softly kill boolt type 2016-01-03 02:05:26 +01:00
pancake
4618834f26 Do not show search help on invalid commands 2015-12-31 14:13:28 +01:00
pancake
07610b8e83 Fix dup hit issue in /c 2015-12-14 10:56: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
Ricardo Quesada
8b7bfbd6ad fixes cmd.hit for bug 3788 2015-12-08 21:09:30 +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
pancake
4b7328f942 Fix #3695 - Proper /R disasm colors 2015-11-19 12:11:36 +01:00
Jeffrey Crowell
d831150a8c avr is aligned on even bytes 2015-11-18 17:15:39 -05:00
pancake
b91eade93b Fix malloc(0) issue in /c 2015-11-16 22:15:26 +01:00
pancake
79c844a687 Fix dmi command and issue in aap 2015-11-15 01:06:42 +01:00
Dima Turchenkov
e38e5dd5c2 One more standard prelude for x86-32/64 2015-11-13 20:47:47 +01:00
pancake
74ec59d624 Fix workaround for /R/ 2015-10-24 02:41:43 +02:00
pancake
f3ddfbb9ec Fixes for RRegex, Use r_regex_match(), comp+exec seems buggy 2015-10-24 02:06:45 +02:00
Jeffrey Crowell
541e2dd132 fix DEADCODE thanks coverity 2015-10-21 12:29:29 -04:00
Jeffrey Crowell
08b8ced5a2 fix the rop search w/o regexp
this was broken for ages, wtf...
2015-10-20 05:02:18 -04:00
Álvaro Felipe Melchor
078f417c91 Fix #2751 2015-10-14 16:20:03 +02:00
pancake
06b45e0ffb Fix dm issue after performance workaround 2015-10-01 19:32:30 +02:00
Jeffrey Crowell
1de44d9135 add rop.comments to allow comments on rop
closes #3092
2015-09-30 23:46:22 -04:00
pancake
72d442931d Fix #3191 - Fix // to repeat last search 2015-09-23 13:04:15 +02:00
pancake
c30eaf5e57 Fix #2337 - Do not show config vars in /? 2015-09-23 10:40:12 +02:00
NighterMan
465a0338c3 Fix for #3329
Search cmds do not honor search.from/to when searching in raw binaries
2015-09-21 00:01:18 +02:00
pancake
4e47d86de0 Honor wheelspeed, fix oob in vmenus and more boolification 2015-09-14 16:22:57 +02:00
pancake
b515a34676 More stdboolification 2015-09-14 12:35:38 +02:00
pancake
8eb71af9ed Internal reg prefix is now $, 85008 for curpc, TRAP for traps 2015-09-14 11:31:54 +02:00
pancake
783d31bf5a Find strings in esil and support thumb aap 2015-09-10 04:20:09 +02:00
pancake
930c8e7535 Implement esil.iotrap. Handle invalid read/write ops 2015-09-09 01:17:55 +02:00
pancake
fbc6664511 Fix #3214 - missing newline in /j output 2015-09-01 23:34:27 +02:00
jvoisin
dba909b1dd Fix yet-another-batch of clang-analyzer issues 2015-09-01 23:24:11 +02:00
pancake
bfdfe0ec38 Fix asm.bits issue in 8051 test 2015-08-31 13:54:24 +02:00
pancake
dde566d824 Fix #3112 - Honor search.align in /R 2015-08-19 01:46:07 +02:00
Jeffrey Crowell
15e15e4c05 rop search for single instruction doesnt work
just give advice to search for single instruction, that makes more sense
than this.:wq
2015-07-31 01:17:15 -04:00
pancake
9b1ce9250a Fix search boundaries for io.va=0 2015-07-17 01:53:45 +02:00
pancake
e38e5b8291 Add powerpc function prelude 2015-07-15 00:58:45 +02:00
Álvaro Felipe Melchor
0038c473b2 Fix PR #2935 2015-07-15 00:37:46 +02:00
Álvaro Felipe Melchor
909b8e5414 Fix #2909 2015-07-13 23:26:28 +02:00
Jeffrey Crowell
3ef6f65a13 add help for /c/j and /c/ one;two 2015-07-08 14:24:22 -04:00
Jeffrey Crowell
f5095cff88 add regexp to /c/ 2015-07-08 14:02:48 -04:00
pancake
cf087149cc Fix #2724 - Fix /+ and few warnings 2015-06-30 12:36:13 +02:00
Álvaro Felipe Melchor
805818ba87 Fix #2850 - oob read with the command /p 2015-06-28 23:06:11 +02:00
Álvaro Felipe Melchor
ccef928dfe Fix some COVs 2015-06-28 20:15:35 +02:00
Anton Kochkov
42830b70c6 Fix CID 1308251,1308249 2015-06-27 20:31:37 +03:00
Anton Kochkov
50112e08e5 Fix CID 1308250,1259928,1256138,1258673,1134613 2015-06-27 20:25:47 +03:00
pancake
e3e39a806e Fix #2841 - Fix some near-infinite loops in sandbox mode 2015-06-25 23:41:14 +02:00
pancake
0221e570bd Better eprintf's for /# 2015-06-22 00:57:22 +02:00
pancake
0427dbc04f Add /# command to search for blocks matching a hash 2015-06-22 00:22:18 +02:00
pancake
f38d84fe37 Fix #2764 - based on @alvarofe patch 2015-06-21 10:02:41 +02:00
Jeffrey Crowell
0002500116 fix doc for rop search 2015-06-13 20:04:11 -04:00