65 Commits

Author SHA1 Message Date
pancake
c1ebfa5d1b Fix crash in dmh on Frida 2019-05-02 12:53:03 +03:00
MK
6030783c7a Code refactoring for the theme based colorization to reduce derefs - dmh commands set ##cons (#13906) 2019-04-27 10:55:18 +02:00
t1t0
6e87777b69 Displaying chunk flags as bits ##debug
The 'display' routine of the malloc_chunk should display each field of
flag field as bits.

So prior to this proposal, `dmhc` could yield following information:

```
struct malloc_chunk @ 0x7f5462ed4000 {
  prev_size = 0x0,
  size = 0x1112000,
  flags: |N:4 |M:2 |P:1,
```

The flags should be displayed as: `flags: |N:1 |M:1 |P:1`
2019-03-14 11:50:36 +01:00
pancake
38a0343e62 Implement visual decompiler and fix the RConfigHold API ##disasm 2019-03-04 02:44:13 +01:00
d-we
57e63d8f82 Fix regression in dmh's brk_end calculation (#12791) 2019-01-15 10:38:08 +01:00
radare
ab3a7be704
Almost completely kill RIOSection from io and core (-218LOC) ##refactoring
* Use RBinSection, RDebugMap or RIOMap instead
* Remove omps command
* Fix segfault in ?E+
* Improve anal.eobjmp (bug spotted after almost killing iosections)
2019-01-13 03:07:51 +01:00
lzutao
50320592a6 Fix #12060 and #12072 - Rewrite r_num_abs and r_num_units ##core
r_num_abs:

- Make r_num_abs static inline
- Use unsigned long long type when defining TB macro
- Use st64 instead of long long

r_num_units:

- Add len argument for buf in r_num_units
- Add PB and EB for r_num_units
- Always display one number after decimal point

  * This change simplifies the code
- Use long double type as assigning from ut64 to double cause data loss

r_num_tail_base:

- Use isxdigit (fast) instead of isHexDigit (slower)
- Rename nth to get_nth_nibble

Update all functions to use with new r_num_units:

- Remove side effect when using in other functions like cb_printf

* Trim trailing .0 when input is power of 2
2018-11-14 23:35:44 +01:00
Collin Reilly Clark
c595ebe447 remove duplicate word
This address is is not part of the arenas -> This address is not part of the arenas
2018-10-21 01:23:50 +02:00
radare
e7d3706b8f
Fix gcc8 warnings and rename core/asm.c to casm.c ##refactor 2018-10-20 01:23:15 +02:00
MK
3c74828055 Fix #11856 dmh puts "No Heap section" error msg twice (#11857) 2018-10-19 02:02:38 +02:00
Riccardo Schirone
ab4578a546
remove random warnings when compiling (#11767)
* remove random warnings when compiling

* debug_native: provide r_debug_handle_signals on windows
2018-10-08 13:21:50 +02:00
pancake
816463ed70 Fix warnings in dmh 2018-10-08 11:33:51 +02:00
morbith-dqtz
6c34858e56 linux_heap_glibc: debug heap at core file and avoid using symbols for global_max_fast assuming always the max sixe for the arch (#11632) 2018-09-25 09:59:05 -07:00
morbith-dqtz
387b9d964b linux_heap_glibc : locate main_arena without computing symbol offsets (#11615) 2018-09-22 00:11:22 +02:00
morbith-dqtz
5c6b976343 linux_heap_glibc: refactor (#11541) 2018-09-17 02:00:39 +02:00
morbith-dqtz
1ee0b58709 11471 Quick fix, setting dbg file via config (#11476) 2018-09-12 11:56:01 +02:00
morbith-dqtz
0baadb414c linux_heap_glibc: fix dmhf and allows dmhf @thread_arena (#11441) 2018-09-08 12:29:31 +02:00
morbith-dqtz
a95fb331da linux_heap_glibc : dmha and dmht, check threaded arenas free status (#11390)
Only parse tcache if isn't freed otherwise parses trash
Print free if the threaded malloc is
free'em all!
2018-09-05 11:24:41 +02:00
morbith-dqtz
2806266c36 linux_heap_glibc : (#11382)
Fix first chunk offset for tcache mmaped heap
Frees temporary sctruct at tcache checkout
Removes "size_tmp > top_size" :
   This control declare chunk as corrupted if its size is grather
   than size that figures in the top_chunk size filed
2018-09-03 23:53:38 +02:00
Riccardo Schirone
70aa10fc08 linux_heap_glibc: variable should be declared outside if/else blocks 2018-09-03 11:19:26 +02:00
morbith-dqtz
a8433785b9 Update two preprocessor directives left (#11366) 2018-09-03 10:43:33 +02:00
morbith-dqtz
909a502847 Parsing tcache at threaded arenas (#11357) 2018-09-03 02:49:46 +02:00
morbith-dqtz
89edd04cec Fix dmh at addresss with tcache (#11359) 2018-09-02 22:05:03 +02:00
morbith-dqtz
5c0eaa71f1 linux_heap_glibc: Fix threaded arenas following (#11328) 2018-09-01 03:05:47 +02:00
David CARLIER
0c83963f79 Fix warning. (#11330) 2018-08-31 13:51:09 +02:00
Riccardo Schirone
12f70b2169 linux_heap_glibc: avoid var declaration inside for (#11324) 2018-08-31 12:23:15 +02:00
morbith-dqtz
3afc8cd8c1 heap tcache flgs fixes (#11282)
* now glibc tcache parsing if checked by a config flag, no more preprocessor

* * calls r_resolve_symbol to recompute malloc_state offset
* fix cpu autodetect for tcache flags
2018-08-28 13:00:38 +02:00
morbith-dqtz
e09306ab99 Make glibc tcache parsing if checked by a config flag, no more preprocessor (#11266) 2018-08-26 22:50:30 +02:00
morbith-dqtz
fcb5a3e07f Fix offset to main_arena in libc6-2.27 x64_32 (tested in debian and kali 32 bits) (#11147) 2018-08-19 15:50:31 +02:00
pancake
95d346b611 Fix #10674 - pzq and gcc build 2018-07-09 01:13:29 +02:00
morbith-dqtz
a7b9b7e37a two fixes for working with heap in 32bits (#10625)
* fix hash calculation of libc-dbg file (debian9 32bits)
fix heap dmh for tcache in 32bits (debian9 testing 32bits)
2018-07-08 15:19:45 +02:00
Rene Laemmert
ce9039da8b Removed bin_load from linux_heap_glibc.c (#10635) 2018-07-08 01:08:36 +02:00
Florian Märkl
8361103ba1 Do not create new RCore in get_hash_debug_file(), Fixes #10447 (#10553)
* Fix check of r_bin_open() return value in get_hash_debug_file()
* Do not create new RCore in get_hash_debug_file()
* Use existing RCore in get_hash_debug_file()
2018-06-30 17:18:05 +02:00
morbith-dqtz
d5a32f6aca Support heap glib tcache in dmh family (#10540) 2018-06-29 11:17:57 +02:00
soez
ed5a4d40ab Fix condition in function dmh (#10433) 2018-06-20 19:18:58 +02:00
soez
0bd511cff6 dmh function modified 2018-06-20 11:25:08 +02:00
pancake
31ad955bab Use r_io_read_at instead of r_core_read_at which is now deprecated 2018-05-21 23:06:00 +02:00
pancake
6e1345bc99 Implement dmh* and dmhj 2018-05-19 01:29:09 +02:00
pancake
19044a7e33 Fix crash in dmh when creating a new core
- the cons->user changed and it segfaulted in r_cons_is_breaked()
2018-05-19 01:01:51 +02:00
Riccardo Schirone
a5811d1a2b Fix #9612 - Skip dummy nodes in graph navigation (#9622)
- This reverts commit 747de793c369f29238abaf8138202a4894d4c8c1.
- And skip dummy nodes for VVtf
2018-03-07 22:14:12 +01:00
pancake
747de793c3 Fix build on Linux 2018-03-07 00:33:03 +01:00
Fangrui Song
320a2d5a58 Add FUNC_ATTR_USED and fix some warnings (#9413) 2018-02-17 20:19:33 -06:00
pancake
832a6caf3a Fix #7711 - Bad pointer arithmetics in jemalloc parser 2017-11-26 23:16:38 +01:00
soez
a47b7f8021 fix #8737 (#8803) 2017-11-08 11:04:36 +01:00
soez
a39cff680a Fix #8737 2017-10-29 01:59:39 +02:00
pancake
f20edcc5ee Fix last covs 2017-08-07 12:48:02 +02:00
Anton Kochkov
8962cef84c Honor the config in mmap graph 2017-07-18 18:37:11 +08: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
90480d325b Fix last covs 2017-06-05 13:23:39 +02:00
Anton Kochkov
3acd8e365c Fix dmh canvas config usage (#7661) 2017-06-02 16:47:49 +02:00