28 Commits

Author SHA1 Message Date
radare
37f7052805
Handle DEX files with no entrypoint properly ##bin 2019-05-16 19:09:47 +02:00
Riccardo Schirone
66f7403245 Rewrite the RBuffer API to make it safer and adjust the codebase ##refactor (#13656)
* Reimplement r_buf_fread/fwrite
* Add slice buffer and introduce readonly field
* Do nothing if size is 0
* Prevents an overflow when 8 is subtracted from size.
* Fix ragg2 when patching outside currently existing buffer
* Implement r_mem_mmap_resize for systems where mremap is not defined
* r_buf_buffer can be called with no size arg as well
* Use size_t instead of ut64
2019-05-15 15:34:06 +02:00
Khairul Azhar Kasmiran
8d2b16d74f r_str_prefix() -> r_str_prepend() (#14048) 2019-05-13 16:16:13 +02:00
radare
7d158e443b
Fix #13988 - Add JSON output format to rafind2 ##search 2019-05-11 18:41:59 +02:00
pancake
32f6bfd46c Honor the entry0 flag and other bug fixes 2019-05-10 12:41:11 +02:00
pancake
2b90433bee Fix crash in -n 2019-05-10 12:14:25 +02:00
pancake
a59b8131a5 Seek to the first executable section if there's no entrypoint ##bin 2019-05-10 11:27:39 +02:00
pancake
affeb0de5f Initial rework towards bringing back remoting commands ##sync 2019-05-06 11:31:32 +02:00
radare
bd4b91e8eb
Fix rahash2 -B and -b regression not printing partial hashes ##bin 2019-05-05 12:52:02 +02:00
pancake
cf16cf4cd1 Add 'oba [addr] [baddr]' command handler when m != b ##bin 2019-04-18 13:16:58 +02:00
GustavoLCR
38bdc772ce Fix coredump PC not being considered (#13793) 2019-04-17 11:49:28 +02:00
Mert Degirmenci
23885d9a06 Add scr.confirmquit to actually "Confirm on quit" ##core 2019-04-16 13:45:36 +02:00
Riccardo Schirone
820e3dbe73
Improve r_buf_buffer and remove r_buf_get_at (#13676)
* Make r_buf_buffer return a ut8 and the associated size of the buffer
* Remove r_buf_get_at uses and make it static
2019-04-15 13:24:15 +02:00
pancake
4473f40533 Add version information to libr_main 2019-04-08 16:31:21 +02:00
radare
1125bf7476
Initial import of the WIP zdiff algorithm ##diff 2019-04-05 15:34:43 +02:00
pancake
4cae6b6558 Fix Android build and a lonely warning 2019-04-02 15:50:19 +02:00
pancake
439f6d3ae8 Fix help message for rabin2 -h | grep str.filter 2019-04-01 01:18:47 +02:00
David CARLIER
ad13e09b11 Fix some warnings and remove unused code 2019-03-30 21:24:21 +01:00
radare
97db085479
Fix #13541 - Automatic radiff2 -p when no bininfo is found ##diff 2019-03-29 13:03:17 +01:00
Mikael Modin
aa07738c10 Fix #13363 - Remove URI handler before looking for auxillary script ##debug
When using debugger the file assumed path for the auxillary script
was dbg://<binary path>.r2, without debugger it's just <binary path>.r2.

This patch cuts out the 'dbg://' prefix if found before looking for the
auxillary script.
2019-03-27 01:33:48 +01:00
Riccardo Schirone
3f4580b031
Make buf field private in RBuffer (#13473)
* Fix pemixed build (and include it in meson build)
* Do not use base_priv in yank, it was wrongly used.
2019-03-26 20:32:53 +01:00
Giovanni
8058018973 Fix #11133 - Remove buf_hex frield from RAsmOp ##refactor 2019-03-26 12:50:13 +01:00
a1ext
225314bca4 Fix #1179 - itj hashes calculation command has fixed (#13441)
* Fixes #1179 - `itj` command has fixed, small refactoring on hashes storage, removed obsolete `file.sha1` usage
* Show all the different hashes on `it` and `itj`
* `it` and `itj` refactoring.
PJ optimizations have made, added more arguments checks
2019-03-21 11:02:48 +01:00
Khairul Azhar Kasmiran
a478cdfc5f bin.str{purge,filter} -> bin.str.{purge,filter} ##core 2019-03-19 17:34:59 +01:00
Riccardo Schirone
0948f9536b
Use r_buf_size to get the size of a buffer, not the private field (#13380)
* Use r_buf_size to get the size of a buffer, not the private field
* Use r_buf_seek instead of adjusting the private cur RBuffer field
* use r_buf_read instead of r_buf_read_at(.., cur, ..)
* Fix RBuffer usage in REgg
* Introduce r_buf_tell API instead of using seek
* write_at(cur) == write
2019-03-15 20:28:52 +01:00
David CARLIER
209427308d Add r_th API to rename threads in r2 2019-03-11 11:09:12 +01:00
radare
913c99b4e1
Compute file hashes on request via it and compare if has changed ##bin 2019-03-09 17:36:59 +01:00
radare
82416b0212
Create libr_main and make all binaries use it ##core
* Cleanup the use of getopt with our wrapper
2019-03-08 14:22:59 +01:00