Florian Märkl
242f1efdfa
Add RIntervalTreeIter typedef
2020-05-09 12:27:17 +02:00
Florian Märkl
63c09c7ed6
Add breaking to RIntervalIterCb
2020-05-09 12:27:17 +02:00
Riccardo Schirone
72f97959e8
Fix Tests after Reports by asan ( #16776 )
...
* Fix memory leak in IO
* Fix memory leak in cmd_api
* Remove unused variables in test_table
* Fix memory leak in test_flags
* Fix memory leak in test_list
* Fix memory leaks in test_anal_var
2020-05-08 21:45:01 +02:00
Khairul Azhar Kasmiran
2a4cc154f6
Prevent flicker in Visual mode on mintty when holding down PgUp/PgDn ( #16780 )
2020-05-07 19:37:14 -05:00
Florian Märkl
47008105b2
Fix CODEOWNERS ( #16783 )
2020-05-07 18:17:03 +02:00
Florian Märkl
beb2f2dd94
Update CODEOWNERS
2020-05-07 17:58:17 +02:00
Riccardo Schirone
c2b1257b59
Fix compilation warnings related to dex/bin_dex and fix some leak ( #16775 )
2020-05-07 11:46:09 +08:00
Riccardo Schirone
03a5c4d3f5
Remove RCoreCmdStatus and just use RCmdStatus ( #16774 )
...
* Remove RCoreCmdStatus and just use RCmdStatus
* Assume RCorePlugins returns true/false
2020-05-06 14:38:20 +02:00
Riccardo Schirone
64e6df5004
Extend RCmdDesc with different types ( #16738 )
...
* Add RCmdDesc and use it for newshell to call command handlers
* Keep supporting existing RCorePlugin commands
* Properly free RCmdDesc tree
* Remove help from API because not used
* Check for cp->call before using it
* Set res to 0 because otherwise it could exit too early
2020-05-06 14:34:19 +08:00
GustavoLCR
4fa630cbed
Add default_cc to RBinInfo ( #16773 )
...
This fixes having to use afc=ms to set the correct cc to 64bit PE files
Add test for detecting cc on 64bit PE
2020-05-06 12:00:46 +08:00
GustavoLCR
3142e60e8c
Fix #11808 - Fix -0
mode on Windows ( #16772 )
2020-05-06 11:58:48 +08:00
Khairul Azhar Kasmiran
ccab2eb393
When getting terminal size on mintty, reuse prev vals if rows=0 ( #16769 )##cons
2020-05-06 00:30:47 +02:00
Alexis Ehret
de5a0b0416
ELF: Minimize dynamic loading ( #16770 ) ##bin
...
* Add DT_BIND_NOW, DT_FLAGS, DT_FLAGS_1
* Add DT_RPATH, DT_RUNPATH
* Remove use of dyn_info from get_sections_from_phdr
* Remove dyn_info ref inside get_symbols_from_phdr
* Fix use of length related dyn info
2020-05-06 00:28:42 +02:00
Francesco Tamagni
e9152db544
Add unit test for r_leb128
2020-05-05 18:47:23 +02:00
Francesco Tamagni
e1ae1c7e5c
Tweak tests for DWARF
2020-05-05 18:47:23 +02:00
Francesco Tamagni
99330d6ce3
Fix DWARF parsing ##bin
...
- support up to v4
- ensure all v4 line number program header fields are parsed
- remove wrong assumptions about the content of included directories
- ensure unit length calculation is correct
- ensure all leb128 / uleb128 have boundary checking
2020-05-05 18:47:23 +02:00
Francesco Tamagni
a70b06f1f0
Fix typo in ObjC ivar parsing ##bin
...
Which caused a NULL dereference in some cases
2020-05-05 18:47:23 +02:00
Francesco Tamagni
ec7672e71b
Fix r_leb128 implementation ##util
...
- consume the trailing zero to ensure the result is correct
- take `datalen` argument to ensure boundary checking
2020-05-05 18:47:23 +02:00
Riccardo Schirone
39865315c0
CentOS tree sitter fix using gnu99 when available ##build
...
* Update ACR to use the new CHKFLG
2020-05-05 18:43:25 +02:00
Óscar Carrasco
990a6dfa23
Fix #16343 - Do not generate numeric structs from unnamed typedefs in "ts" ##types ( #16485 )
2020-05-05 15:51:17 +02:00
GustavoLCR
21faee260a
Speedup parsing PE exports ( #16762 ) ##bin
2020-05-05 12:58:06 +02:00
Paul I
5619892652
Use HtPP to resolve ESIL ops ( #16764 ) ##anal
2020-05-04 15:19:20 +02:00
GustavoLCR
aeeb266397
Fix aggressive name filtering for PDB types
2020-05-03 17:55:53 +02:00
Francesco Tamagni
fcc5ae0dc6
Add more tests for vtable parsing
2020-05-03 17:55:20 +02:00
Francesco Tamagni
d8b1e6952e
Improve itanium RTTI parsing and vtable search ##anal
...
- add support for arm/arm64
- simplify the heuristics for carving the start of vtables in data const section to not rely on xrefs, instead look for mandatory vtable fields (only for itanium ABI)
- add support for classes recovery from itanium RTTI
- add class name demangling for itanium RTTI
- relax the requirements for detecting the typeinfo flavor, in absence of flags just assume the simplest kind so at least the class name is there
- expose more info from RTTI structures
- use PJ for printing json
2020-05-03 17:55:20 +02:00
Francesco Tamagni
78b6cdeaaf
Expose flag_get_list to RFlagBind
2020-05-03 17:55:20 +02:00
Francesco Tamagni
3ad04c79c6
Fix Mach-O relocs on arm thumb ##bin
...
The word size can’t be 16-bits for data
2020-05-03 17:55:20 +02:00
Riccardo Schirone
79bee09fc3
Use g->x and g->y to rebase x/y got with r_str_str_xy
...
* Use RVector instead of RPVector
* Use RAGraph instead of the fixed core->agraph which may be wrong
* Fix infinite loop and remove unused functions
2020-05-03 17:33:36 +02:00
pancake
4b0e25caeb
Implement findNextWord in the interactive Visual Graph ##graph
2020-05-03 17:33:36 +02:00
Alexis Ehret
311ad81894
Change default value inside struct ELF dyn ( #16741 ) ##bin
2020-05-03 16:19:26 +02:00
Khairul Azhar Kasmiran
8484a1b103
Fix some remaining issues of #16747 ( #16760 )
...
* Fix mintty issue with mouse clicks/scroll wheel after quit
* Fix alacritty issue with stty
2020-05-03 22:06:50 +08:00
GustavoLCR
153de56173
Add VT sequences input support ##windows ( #16747 )
...
* Add VT sequences input support ##windows
* Fix radare2 immediately exiting when console is redirected to pipe
* Hack to get viewport size under MinTTY
* Fix mouse when VT input disabled and buffer scrolled
* Fix line wrapping when VT output disabled
* Fix build on VS2017
* Fix for comments
* fix some weirdness
* Fix losing echo after exiting
2020-05-03 17:31:52 +08:00
Sylvain Pelissier
502b4b0f52
Fix MIPS syscall analysis ( #16751 ) ##anal
2020-05-03 11:03:08 +02:00
Sylvain Pelissier
d2b1d1359e
Add F9 continue key to ESIL ( #16756 ) ##visual
2020-05-03 10:52:47 +02:00
Khairul Azhar Kasmiran
dbd33d0efe
Windows sys/meson.py: Add r2 shell script ( #16753 )
2020-05-02 18:54:01 +02:00
Florian Märkl
d7258113d9
Add Tests for MSVC VTables and RTTI ( #16754 )
2020-05-02 18:34:03 +02:00
Khairul Azhar Kasmiran
4ba026258e
bin.str.enc=utf8: Assume ASCII first 🇺🇸 + add some more tests ( #16735 ) ##bin
2020-05-02 18:15:13 +02:00
Florian Märkl
d586793bf5
Fix r2r -i fix for single-line EXPECT=
2020-05-02 17:44:18 +02:00
pancake
fc65e0f6a8
Fix the Debian package build, add missing deps ( #16745 )
2020-04-30 12:00:58 +08:00
Riccardo Schirone
a29f0ccce5
Add CI job for CentOS 6 build ( #16712 )
...
* Fix re-definition of RAnalBlockCb and RAnalAddrCb
* Small compilation fixes for gcc-4
* Check PTRACE_GETREGSET before using it
* Add GH workflow to run on centos:6 for prerelease branches
* Fix configure.acr
2020-04-29 19:02:02 +08:00
GustavoLCR
cb7d6b4390
Fix #16737 - PE: fix overly agressive section fixing ( #16743 )
2020-04-29 12:22:27 +08:00
GustavoLCR
c1e81f4245
Fix #16739 - PE: fix getting import entries from single directory ( #16742 )
2020-04-29 12:21:56 +08:00
atodekangae
b18529696c
Fix assembling of xchg so that it roundtrips
2020-04-29 00:13:25 +02:00
atodekangae
60fbd0b83a
Fix assembling of xchg and the tests for it
2020-04-29 00:13:25 +02:00
atodekangae
e40e51d2ce
Fix assembling of bswap r8(d)-r15(d)
2020-04-29 00:13:25 +02:00
pancake
55f99ba4f4
Fix regression loading large files (>2GB) on 32bit systems ##io ( #16648 )
2020-04-28 22:09:30 +02:00
Liumeo
7ffb7cf77a
Do not redefine assert in dis.c ( #16694 )
2020-04-28 19:35:29 +02:00
Riccardo Schirone
d4fd59a4e3
Fix some coverities ( #16740 )
...
* relocs was leaking otherwise (CID 1427852 and CID 1353777)
* Free RCmdParsedArgs before returning (CID 1427851)
* Do not double free tmp array (CID 1427850)
2020-04-28 18:21:58 +02:00
pancake
7df1b200a6
Reduce memory usage in DEX files by caching the getstr calls ##bin ( #16706 )
...
type top vsz rss time
------------------------------------
calloc 339M 4732640 365452 48s
pvector 338M 4731012 371484 48s // XXX fails somehow with trash indexes
htup 338M 4731556 371620 58s
nocache 350M 4742936 376156 52s
2020-04-28 16:13:20 +02:00
pancake
c88d13e4af
3.5x faster DEX loading parsing debug_info section ##bin ( #16733 )
...
* Use proper RBuf api instead of doing bulk reads in DEX ##bin
* Loading an 8MB DEX file: Before: 48s, After: 17s
2020-04-28 13:50:24 +02:00