Commit Graph

17650 Commits

Author SHA1 Message Date
Johannes
5151ebb783 Makefile: use ${LD} or ${CROSS}ld instead of ld (#9720) 2018-03-19 11:39:02 +08:00
Florian Märkl
d6e3036322 Propagate changes of fcn->_size in anal->fcn_tree 2018-03-18 15:11:29 +01:00
Florian Märkl
aabc2c26fa Add _fcn_tree_print_dot() 2018-03-18 15:11:29 +01:00
Florian Märkl
4ab13bd59a Use anal->fcn_tree in r_anal_get_fcn_at() 2018-03-18 15:11:29 +01:00
Florian Märkl
7cf1306fbd Remove fcnstore (Fix #9611) 2018-03-18 15:11:29 +01:00
Oscar Salvador
be39b4a18b Add r_bin_elf_map_free to release elf's RBinMap correctly 2018-03-16 17:01:49 +01:00
pancake
3d76f86900 Fix warnings in the ELF latest changes 2018-03-16 12:28:54 +01:00
r00tus3r
e7f68c9f3a Started with rtti gcc parsing 2018-03-16 11:13:55 +01:00
r00tus3r
e16b1ef1c8 Adding ascii table 2018-03-16 11:13:55 +01:00
Farid AYOUJIL
a3eaa10f69 Adding trie to util 2018-03-16 11:11:17 +01:00
Oscar Salvador
62de01072f core-loading: Add support for arm32 2018-03-16 11:10:59 +01:00
Florian Märkl
93d9f4ec66 Add mask parameter to r_anal_op() 2018-03-16 11:10:15 +01:00
Florian Märkl
94bdf5ce56 Enable xtensa in meson
Fix r_anal_op() for anal_xtensa if ESIL is disabled

Fix anal_xtensa for Windows
2018-03-16 11:10:15 +01:00
xarkes
b3d856bc3d Fix segfault with /cj 2018-03-16 11:02:18 +01:00
redmed666
24e076e19e Fix #9595 (#9673)
* Added an address mask inside the RAnalEsil struct in order to be sure that the address accessed is relevant with the asm.bits of the file + Changed the calls to r_anal_esil_new

* Corrected the addrmask in r_anal_esil_new

* RTTI: Read MSVC Complete Object Locator

* RTTI: Read MSVC Class Hierarchy Descriptor

* VTable End on Reference

* RTTI: Read MSVC Type Descriptor

* RTTI: Read MSVC Base Class Array, Better Printing

* Add anal.cpp.abi

* Minor Code Style Changes in RTTI

* Fix rahash2 entropy to show non truncated double (#9629)

* Anal - whitespace fixes

* Honor CFLAGS on the static build test compilation (#9677)

* change coding style tab width to 4 (#9670)

* Meson: use more built-in options (#9678)

* Add support for extended regex in asm search (#9675)

* Fix #9665 - Backwardly handle scr.color={bool}

* Fix #9676 - Infinite loop in ecs with scr.color=2

* Adding help for redirection (#9679)

* Refactores function r_str_split_list to receive the character to split by (#9672)

* Fix #9666 - lines with comments do not use Unicode reflines

* Fix uninitialized optypes_list issue in cmd_debug

* update asan.sh to actually take the env for ASAN

* removed incorrect return (#9685)

* Fix UB in ESIL

* Initial import of the CoreUndo API and uc command

* Initial implementation of cmd.pdc to select pseudo-decompiler

* Handle recursive pdc calls

* Fix RPrint.strconv_mode memleak

* Fix leaks in RSyscall.srdb

* Use r_syscall_ref to avoid dblfree-or-leak issue

* Arm thumb/thumb selector for the armass (#9681)

* added function to translate number to imm12
* added function to get thumb shifts easily
* added selector, newfangled implementation of adc
* add bitmask for command suffixes
* added new routine for parsing suffixes to opcodes. Error check added in getnum. Bugfixes.

* Few improvements to 8051 memory mapping (#9686)

* update memory map when idata/sfr/xdata regs change
* set address space name on map
* fix regression, remove debug output
* fix regression, enable map name

* Some fixups for #9682 (#9688)

* Fix: coredump generation for huge programs (#9680)

* Refix #9666 - lines with comments do not use Unicode reflines

* Removed code unnecessary due to dcf3db0250

* Fixed free const warning

* Fix another memleak in RSyscall

* Fix more memleaks

* Fix leak in RConsPal.rainbow

* Fix 18K leak in anal.x86.cs

* Fix some more memleaks in disasm and fix issue in str overlap

* Fix memleak in RCore.anal_refs and fix regression

* Revert "Fix some more memleaks in disasm and fix issue in str overlap"

This reverts commit a902df837b.

* Fix memleak regressions

* Bring back another memleak fix

* Fix an undefined behaviour in RParse.filter

* Fix memleaks in disasm.c

* Add cundo.c to Meson (#9694)

* Bring back an ugly buffer pack access issue to make it work

* Cast to void * in R_FREE (#9692)

* Set anal.cpp.abi to msvc for pe

* Add better help for av

* Split avr into avr and avra

* Make av, avr and avra breakable

* Add RTTI struct specific print functions

* RTTI: Support MSVC x86_64

* PE: Fix too short section name.

* PDB: define a constant to store the max length of a section name and use id.

* PDB: dump the size of structure and union in JSON mode.

* Fix cast issue in eprintf for debug.core.linux

* Move the asm and anal plugins for x86.udis to extras

Available via r2pm -ci udis86

* Remove more udis86 references

* Fix warnings

* fix pcache ptr-fuckup

* Fix defragger theme

* Fix crash in asl and fix its behaviour

* Fix memory leak in blaze anal and silent a warning

* Implement ?q to be like ?v but in quiet mode

* Fix Meson build

* Add missing 8, 16, 32 bit registers (and flags) for the linux-arm64 debugger reg profile

* Fix 'Cannot find function at UT64_MAX message'

* Add some Pingu to fortunes.fun

* Loading Core (x86, x86_64, aarch64) (#9669)

* Ragg2-cc -> Ragg2 merge (#9658)

- change of 'access' function for 'r_file_exists' for windows portability
- several changes in the way ragg2.c is done, see PR #9658 pancake comments
- change function for the remove of 'file'.text
- open changed for r_file_dump
- some elt of cEnv_t are now const
- skip all the pointers verification in set_cEnv but do them in check_cEnv instead
- add 2 r_str_sanitize for file and CC in parseCFile
- rewrite the removal of .o, .tmp, .bin, .s files, with cleaner code
- changed the long command with sed and grep to 2 C functions.
  - The function parseCompiled that basically does what the command was doing
  - And r_str_stripLines that is equivalent to "grep -v" (maybe we should put this one in str.c ?)
- simplify a bit getCompiler function with a const char* array
- add ternary operator for armOrMips condition
- use r_file_path for finding path to compilers
- new file created in libr/egg which contains all the C file parser
- modifications of 2 files to match the change :
  - libr/egg/r_egg.h
  - libr/egg/Makefile
- the function r_str_stripLine is simplier (the mallocs wasn't needed)
- the function r_str_stripLine is moved to libr/util/str.c
- libr/include/r_util/r_str.h is changed accordingly

* Revert bd3465c9a3fbeddf83980dc07eaac588320f7d (warning remains fixed)

This reverts commit titled "Fixed free const warning".

* Added an address mask inside the RAnalEsil struct in order to be sure that the address accessed is relevant with the asm.bits of the file + Changed the calls to r_anal_esil_new

* Corrected the addrmask in r_anal_esil_new

* Cleanup expressions in esil.c (addr &=...)

* Corrected r_anal_esil_new definition in r_anal.h

* Added an address size max in the ESIL config (maximum address size reachable by the ESIL VM)
2018-03-16 10:45:17 +01:00
Khairul Kasmiran
0f275ea9a6 Revert bd3465c9a3fbeddf83980dc07eaac588320f7d (warning remains fixed)
This reverts commit titled "Fixed free const warning".
2018-03-15 19:20:23 +08:00
Gromimousse
a5c9fc7855 Ragg2-cc -> Ragg2 merge (#9658)
- change of 'access' function for 'r_file_exists' for windows portability
- several changes in the way ragg2.c is done, see PR #9658 pancake comments
- change function for the remove of 'file'.text
- open changed for r_file_dump
- some elt of cEnv_t are now const
- skip all the pointers verification in set_cEnv but do them in check_cEnv instead
- add 2 r_str_sanitize for file and CC in parseCFile
- rewrite the removal of .o, .tmp, .bin, .s files, with cleaner code
- changed the long command with sed and grep to 2 C functions.
  - The function parseCompiled that basically does what the command was doing
  - And r_str_stripLines that is equivalent to "grep -v" (maybe we should put this one in str.c ?)
- simplify a bit getCompiler function with a const char* array
- add ternary operator for armOrMips condition
- use r_file_path for finding path to compilers
- new file created in libr/egg which contains all the C file parser
- modifications of 2 files to match the change :
  - libr/egg/r_egg.h
  - libr/egg/Makefile
- the function r_str_stripLine is simplier (the mallocs wasn't needed)
- the function r_str_stripLine is moved to libr/util/str.c
- libr/include/r_util/r_str.h is changed accordingly
2018-03-15 11:48:21 +01:00
Oscar Salvador
362184b722 Loading Core (x86, x86_64, aarch64) (#9669) 2018-03-15 11:46:07 +01:00
Siguza
9e5ff69621 Add some Pingu to fortunes.fun 2018-03-15 11:45:18 +01:00
pancake
2c83965181 Fix 'Cannot find function at UT64_MAX message' 2018-03-15 10:21:35 +01:00
pancake
0cc69579ea Add missing 8, 16, 32 bit registers (and flags) for the linux-arm64 debugger reg profile 2018-03-15 10:16:34 +01:00
Anton Kochkov
a7cd7272e4 Fix Meson build 2018-03-15 11:34:47 +08:00
pancake
663f2f12cf Implement ?q to be like ?v but in quiet mode 2018-03-15 01:07:24 +01:00
pancake
054c40fe02 Fix memory leak in blaze anal and silent a warning 2018-03-15 00:46:12 +01:00
pancake
aa3f438236 Fix crash in asl and fix its behaviour 2018-03-15 00:44:41 +01:00
pancake
77ee1804e5 Fix defragger theme 2018-03-15 00:16:16 +01:00
condret
f1e744440a fix pcache ptr-fuckup 2018-03-14 23:54:41 +01:00
pancake
2682d34291 Fix warnings 2018-03-14 23:54:27 +01:00
pancake
023e4389ed Remove more udis86 references 2018-03-14 23:43:53 +01:00
pancake
3e8f8a2863 Move the asm and anal plugins for x86.udis to extras
Available via r2pm -ci udis86
2018-03-14 22:38:41 +01:00
pancake
95bf50349c Fix cast issue in eprintf for debug.core.linux 2018-03-14 21:16:58 +01:00
Raphaël Almeida
38d3d3651c PDB: dump the size of structure and union in JSON mode. 2018-03-14 20:07:16 +01:00
Raphaël Almeida
1205aea171 PDB: define a constant to store the max length of a section name and use id. 2018-03-14 20:07:16 +01:00
Raphaël Almeida
8b53666beb PE: Fix too short section name. 2018-03-14 20:07:16 +01:00
Florian Märkl
4a14ab1fe9 RTTI: Support MSVC x86_64 2018-03-14 20:05:33 +01:00
Florian Märkl
ec2b05309e Add RTTI struct specific print functions 2018-03-14 20:05:33 +01:00
Florian Märkl
c01bfe9ea1 Make av, avr and avra breakable 2018-03-14 20:05:33 +01:00
Florian Märkl
74566827d1 Split avr into avr and avra 2018-03-14 20:05:33 +01:00
Florian Märkl
972e567664 Add better help for av 2018-03-14 20:05:33 +01:00
Florian Märkl
01280b77f1 Set anal.cpp.abi to msvc for pe 2018-03-14 20:05:33 +01:00
Khairul Azhar Kasmiran
f925b2a5b4 Cast to void * in R_FREE (#9692) 2018-03-14 20:00:40 +01:00
pancake
c2c8257c06 Bring back an ugly buffer pack access issue to make it work 2018-03-14 19:59:25 +01:00
Florian Märkl
564aaf6e48 Add cundo.c to Meson (#9694) 2018-03-14 19:54:44 +01:00
pancake
debcd1387e Fix memleaks in disasm.c 2018-03-14 19:52:09 +01:00
pancake
c03c04eb0a Fix an undefined behaviour in RParse.filter 2018-03-14 19:45:33 +01:00
pancake
351436fb54 Bring back another memleak fix 2018-03-14 18:43:49 +01:00
pancake
f7689564a6 Fix memleak regressions 2018-03-14 18:35:32 +01:00
pancake
5366f843ea Revert "Fix some more memleaks in disasm and fix issue in str overlap"
This reverts commit a902df837b.
2018-03-14 18:32:17 +01:00
pancake
5a171f1450 Fix memleak in RCore.anal_refs and fix regression 2018-03-14 18:31:55 +01:00
pancake
a902df837b Fix some more memleaks in disasm and fix issue in str overlap 2018-03-14 16:07:30 +01:00