Commit Graph

55 Commits

Author SHA1 Message Date
Fangrui Song
1c4407cb69 Fix #8388 - Replace RIOMap::{from,to} with RAddrInterval itv. 2017-09-14 12:40:22 +02:00
condret
0161fa0ec2 make read_at bool again and implement RIOAccessLog for accurate error-handling
This reverts commit a9bf4aae2b.
2017-08-22 17:24:04 +00:00
Fangrui Song
a9bf4aae2b Misc fixes to siol (#8262)
* Fix onIterMap (divide-and-conquer like USACO Shaping Regions), check return values of every `op` call
* Change return types of r_io_read_at and friends back to `int`
* Fix some analysis tests and others
* Fix mem leaks
2017-08-22 10:46:48 +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
Roi Martin
a1388159c8 Fix hexdump offset in zoom mode
Add argument zoomsz to r_print_hexdump(). It allows to specify the real
size of each byte in the hexdump.
2017-06-06 10:45:01 +02:00
pancake
55f1c0b4dd Fix #7108 - Implement anal.fcnprefix 2017-03-24 10:46:13 +01:00
pancake
0ae4a5c3e8 More r2-indent fixes. and reindent a bunch of files 2017-02-20 02:54:16 +01:00
pancake
4bbc73a0e2 Fix #6818 - json indent ~{} honors scr.color
- Cannot configure the color palette
2017-02-20 02:32:58 +01:00
pancake
70930f4496 Bring back the interest on sys/indent.sh 2017-02-10 02:05:58 +01:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02: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
452669d941 ("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 3bfa61946e ("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
Álvaro Felipe Melchor
8059f4be23 fix build 2016-07-21 23:15:52 +02:00
Álvaro Felipe Melchor
01fe87d467 fix coverity and some coding style 2016-07-21 22:56:58 +02:00
Jeffrey Crowell
365547ef82 libr/core/yank.c fix memleak 2016-07-01 01:00:06 -04:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
Davide Balzarotti
86760900b1 Added color support for the hud.
- Fix issue #3570

* new matching algorithm (list of space-separated words, case insensitive)
  - Fix bug #4704
* refactoring some code
* updated copyright
2016-04-28 14:02:22 +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
40e08dbd89 Get rid of _Bool 2015-12-01 12:39:12 +01:00
pancake
b515a34676 More stdboolification 2015-09-14 12:35:38 +02:00
Álvaro Felipe Melchor
21ca91839f Fix #2806 2015-06-24 14:11:00 +02:00
jvoisin
123a77c022 Coverifix 2015-02-11 19:05:28 +01:00
condret
7ce6922491 rename r_io_open -> r_io_open_nomap and add a new r_io_open that creates a map at 0x0 2014-09-06 23:08:16 +02:00
condret
517323db0b fix w32 build
http://sourceforge.net/p/mingw/bugs/1912/   <-- lol
2014-06-02 15:31:03 +02:00
pancake
5e33a8a282 Initial huge refactoring of r_io still work in progress 2014-05-28 04:34:12 +02:00
jvoisin
5d9ee36a47 Fix CID 1195076 and a gcc warning 2014-05-24 02:01:53 +02:00
Andrew McDonnell
127a5c23e4 Implement yz feature and fix memory leak and invalid pointer issue 2014-05-23 15:35:49 -05:00
Anton Kochkov
2ef5cc49f9 Fix CID 1134968 2014-05-02 15:01:38 +04:00
pancake
08d94e38e1 Plugins are now loaded from API, not from Core constructor 2014-04-03 12:43:30 +02:00
Adam Pridgen
f8679bb888 Fixed yank from file RCoreFile swap, and fixed logic bug in io.c that would prevent file swaps 2014-04-02 13:10:03 -05:00
Adam Pridgen
fa683fbfd0 Added a java command to find all CP Object References in Functions, disabled debug code in yank 2014-03-22 20:20:58 -05:00
Adam Pridgen
12dd493f6d extended yank command so that offset and len did not need to be specified 2014-03-22 15:44:21 -05:00
pancake
aa30ed647f Fix #719 - Fixes in yank and uncrustify indentation rules 2014-03-22 00:37:25 +01:00
Adam Pridgen
204f29ac84 patience is a virtue, deeso 2014-03-21 17:27:17 -05:00
Adam Pridgen
2e2e2eaac2 remove yank_off (ha) 2014-03-21 15:29:44 -05:00
Adam Pridgen
940db1cf75 Added the ability to yank a file into a buffer without loading it 2014-03-20 23:25:39 -05:00
Adam Pridgen
b144099451 RCore yank_buf is now a RBuffer with a defined API. Tweaked RBuffer so it reallocs buffers correctly. Modified io_zip to write through on new files. 2014-03-20 13:09:37 -05:00
pancake
5ecf422335 Fix two more segfaults reported by zlul 2013-11-14 04:15:40 +01:00
pancake
42a8bb440e Fix #345 - fix some segfaults in yank and num.c 2013-09-05 05:10:57 +02:00
pancake
0903ccc9f4 Fix #337 - Fix 'y -1' segfault 2013-11-10 22:57:08 +01:00
pancake
ba3ad8112a ELF parser more permissive, add 'fsr' and other fixes
Make ELF loader more permissive
Add 'fsr' to rename flagspaces
Fix parsing issue in 'yy'
Fix crash in r_num
2013-03-07 23:47:41 +01:00
pancake
3bfa61946e Cleaner pvj, fix tinype load, and honor 'ao N's help
Fix TinyPE loading
'ao' arg is now number of opcodes, not bytes
'pvj' output is now cleaner
Random refactorings
2013-02-11 10:51:45 +01:00
pancake
2e83fa67b8 Fix python bindings: do not use homonim methods and fields 2012-09-19 14:08:44 +02:00
pancake
85534da1e9 x86.nz assembler: add jmp/call abs/rel (rip) memrefs
Add some more notes in INSTALL text
Initial design work on dalvik payload instructions
Open '-' virtual file as read-write (r2 -)
Fix r_core_yank_to signature
Remove io.va search warning (no more issues?)
2012-08-09 12:42:44 +02:00
pancake
990d616e13 * Add 16 segment addressing mode
- e asm.offseg=true  : show in disasm
  - ? f000:1345        : calculate value
  - s c000:1400        : seek to segment:address
  - also supports 0xf000:0x123
  - segment is 32 bit instead of 16 #fun
* Add rudi_s patch to pass write_cache test
* Fix crash in r_io_free
* Move r_core_yank_to into yank.c
2012-02-05 01:14:09 +01:00
pancake
9bb24e74ba * Fix overflow in r_cons (thanks rudi_s)
* Fix yank when len > blocksize
* Add yx to show in hexa the contents of clipboard
* Fix 's-2' 's -2' issue (thanks vext01 for reporting)
2012-02-05 00:33:34 +01:00
pancake
29166cc940 * Initial import of the hud input method for the visual mode
* Use '_' key in visual mode to enter in hud mode
* Support mach0 files with multiple sections with same name
* Fix parsing of commands with nested quotes
* rename ?z to ?l
* added new command ?y to get and set yank buffer contents to stdout
* ?i stores the input into the yank buffer now
* ?I accepts a file name as argument which is loaded as hud
* ?k used as key=value temporal storage
* Add calc.c .. plans are:
  - support proper parenthesis in math.c
  - support floating point arithmetics
2012-01-31 02:45:17 +01:00
pancake
6099a388f6 * Reimplement r_flag using RHashTable64
- Much faster (over ninethousand)
  - Must do the same for code analysis stuff
  - Added test case
* Implement r_str_glob ()
2011-05-21 21:05:21 +02:00
pancake
b65fbeb772 * Add some missing function signatures
- Fixes some warnings
* Select thread that returns the wait()
  - Useful for multi-threaded or multi-process debugging
2010-03-11 01:04:59 +01:00