114 Commits

Author SHA1 Message Date
Andry
f8826a492c Fix superfluous seek on error while -escr.interactive=0 (#11166) 2018-08-21 11:42:24 +08:00
pancake
a61d80ff9f Fix last coverities and the use of r_str_cmp as list comparator
* Fix avra test and avoid long time loading trash data in avra
2018-08-11 20:59:28 +02:00
radare
e434a5938b
Fix so command on ARM64 (honor mininstrsize and fix so-X where X > 1) (#11006) 2018-08-10 11:41:47 +02:00
pancake
afda57061c Show error when VA instructions cant be assembled 2018-08-09 16:32:11 +02:00
Florian Märkl
f18a01fb6a Fix a few warnings 2018-06-26 23:09:07 +02:00
radare
bc5627239c
Fix so-, reusing the same code as in visual, dupped but working code (#10251) 2018-06-03 18:53:58 +02:00
sivaramaaa
e5bbaffbfe Refactor code to change R_ANAL_OP_MASK_ALL to appropriate value 2018-05-31 19:05:54 +02:00
pancake
08e65e69cd Support 0xff.. syntax for RNum 2018-05-25 16:46:44 +02:00
Khairul Azhar Kasmiran
1244c4edad Don't seek to unknown address (#10027) 2018-05-06 17:25:06 +02:00
pancake
5a5ab2693b Fix seek undo and make s.. push in the undo history 2018-04-02 22:41:12 +02:00
Florian Märkl
93d9f4ec66 Add mask parameter to r_anal_op() 2018-03-16 11:10:15 +01:00
pancake
72cfc32029 Fix s-1 regression 2018-02-09 23:36:52 +01:00
pancake
4e44e8e18e Fix compilation warnings on Linux 2018-02-09 18:45:54 +01:00
pancake
db76ab25af Fix wao nocj and so? and rename swap-jcmp to recj 2018-01-26 17:34:15 +01:00
pancake
1638507d01 search.maxhits is more aggressive now 2017-12-24 18:10:21 +01:00
pancake
43544f080c s33 also works now 2017-12-22 18:58:35 +01:00
pancake
e499b398ff Bring back s0x33 (without space) syntax support 2017-12-22 12:36:02 +01:00
pancake
0b1e8eaecc Fix almost all warnings from the msvc build 2017-12-19 00:18:39 +01:00
pancake
2f5563e685 Fix #8870 - sn/sp accepts an arg to override scr.nkey 2017-11-23 14:41:11 +01:00
josediazfer
f8d71b8ded Leak "so" command (#8650) 2017-10-04 23:54:44 +02:00
Fangrui Song
d190effb26 Remove search.count in favor of search.maxhits in /A , /R , and everywhere (#8538) 2017-09-18 02:04:01 +02:00
Fangrui Song
047f64956d Fix #8416 - Add sf.: seek to the beginning of the current function (#8418) 2017-09-04 02:59:07 +02:00
condret
2f201bded0 opsalamance - merge the big siol branch
- Thanks @MaskRay and @condret
2017-08-22 09:42:16 +02:00
alvarofe
2e462ec8f0 Bring RIODesc from SIOL and cleanup 2017-08-18 01:31:57 +00:00
pancake
0d04abce48 s-- and s++ accept a number as argument to half the seek 2017-08-01 12:18:16 +02:00
pancake
fa576bbb9a Implement s-* command 2017-07-28 06:12:01 +02:00
pancake
933c6737fe Remove whitespaces around + in sj 2017-07-27 18:38:28 +02:00
Fangrui Song
86de0abd20 Use RList for cmd_descriptors, make it a member of RCore (#8034) 2017-07-27 14:52:17 +02:00
pancake
96ac03cfec Fix sj 2017-07-27 02:26:54 +02:00
Fangrui Song
21166057d0 s commands: move help_msg_*[] arrays to top (#8012) 2017-07-26 15:15:13 +02:00
pancake
cd22fbb217 Add $Fj and $Ff in ?$ and update s? help msg 2017-07-18 02:06:19 +02:00
pancake
4e4ed9fd20 Implement s== to show flag names, not just offsets 2017-06-28 14:13:12 +02:00
Lowly Worm
f9b66ac8e1 fix memleak in sj 2017-06-20 22:00:44 -07:00
Lowly Worm
d79f84fdd9 add sj (json seek history (fixes #7663) 2017-06-19 19:17:27 -07:00
Simone Ferrini
2a573ac402 Fix #7527 - read block after s- and s+ 2017-05-20 13:23:46 +02:00
pancake
f1009a0dd0 Fix regression in ssr 2017-04-10 16:39:10 +02:00
pancake
7b4cbf6448 Fix #7217 - Properly implement the ss command 2017-04-10 13:17:38 +02:00
pancake
c1074d8e9d Fix non-initialized regression in s 2017-03-27 13:43:18 +02:00
pancake
c504b85a7c Fix #7117 - Implement s! to show near flag names for history offsets 2017-03-27 13:12:59 +02:00
Maijin
4a5144635d Fix #7144 2017-03-26 22:34:03 +02:00
Riccardo Schirone
26fd259d04 New command 'ss' (Silent Seek)
These commands seek to an address or a register without logging the
entry in the seek history.
2017-03-19 02:34:53 +01:00
pancake
7a0a11f500 Apply minor naming and indent changes from the siol branch - thanks condret 2017-03-15 02:22:54 +01:00
pancake
9d06886c84 Add s: to show seek with configurable 0 padding 2017-02-20 12:25:21 +01:00
SkUaTeR
778c5c8298 Improved backward so and fix bad char into source file 2017-02-09 00:31:40 +01:00
jvoisin
050d383ae7 Improve a bit the help for anal-related commands (#6348)
* Improve a bit the help for anal-related commands
* Help for `dcs`
* Help for wt
* Add help for dcu
2016-12-21 09:02:55 +01:00
Maijin
ffd8ecd14b Add remaining [?] 2016-11-26 14:57:21 +01:00
Álvaro Felipe Melchor
87724384d1 added r_cons_break_{push/pop} to handle ^C better
Besides an UAF has been fixed afecting only ELF
2016-11-21 16:56:12 +01:00
Chris Rorvick
9b47635f0c remove `next' param from r_core_block_read()
This was originally used to cause a seek to the next block prior to
reading such that successive calls to r_core_block_read() would progress
through memory one block at a time.  This was broken, though, by commit
452669d94113 ("more cleanup in r_core_block_read") when when it used
`next' to directly calculate the offset rather than via a seek.

Only one call site remains that attempts to read the next block instead
of the current, and this probably was not even observable due to the
"hacky fix" added in commit 3bfa61946eca ("Cleaner pvj, fix tinype load,
and honor 'ao N's").

The current of semantics of `next' appear to be broken and there is very
little dependence on it.  If the original behavior should be restored
anywhere, it would be much better to add a new function, or just do the
seek explicitly, rather than parameterizing r_core_block_read() on it.
2016-08-15 14:26:58 -05:00
Chris Rorvick
97cea63435 fix backwards seek
Commit 57b199789d6a ("Reread block after undo seek. Fixes dbg.status
issue") reads the *next* block into the buffer rather than the current.
This breaks backwards seeking as can be seen in the following example:

  $ r2 -N malloc://0x4000
  [0x00000000]> b 64
  [0x00000000]> wb 38
  [0x00000000]> s 64
  [0x00000040]> wb deadbeef
  [0x00000040]> s-32
  [0x00000020]> px
  - offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF
  0x00000020  dead beef dead beef dead beef dead beef  ................
  0x00000030  dead beef dead beef dead beef dead beef  ................
  0x00000040  0000 0000 0000 0000 0000 0000 0000 0000  ................
  0x00000050  0000 0000 0000 0000 0000 0000 0000 0000  ................
  [0x00000020]> s+16
  [0x00000030]> px
  - offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF
  0x00000030  3838 3838 3838 3838 3838 3838 3838 3838  8888888888888888
  0x00000040  dead beef dead beef dead beef dead beef  ................
  0x00000050  dead beef dead beef dead beef dead beef  ................
  0x00000060  dead beef dead beef dead beef dead beef  ................

The first block to a string of ASCII '8' bytes and the second to
0xdeadbeef.  We then seek backwards 32 bytes from our current 64 byte
offset but a dump at the resulting offset shows data from half way into
the second block (i.e., offset 0x60.)  Dumping again after seeking 16
bytes forward shows the expected last bit of the first block.  Clearly
the intent was to reread the current block, not the next block, after an
undo or backward seek.

NOTE: The above example will only work after applying the previous
commit as rereading the buffer when displaying the prompt hides this
bug.

Additionally, since the commit intended to reread the buffer only after
an undo seek, do not do this at all on a backward seek.
2016-08-15 14:00:39 -05:00
Anton Kochkov
68ef35f635 Uniform name RUndos -> RIOUndos (for bindings) 2016-06-02 07:34:06 +03:00