383 Commits

Author SHA1 Message Date
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 dcf3db025085c45124ec21890550a4ef19bd015c

* 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 a902df837b0d499e1723179ed5c957c078703b51.

* 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
pancake
5da2685463 Prefix ec escape code with x1b to not look weird 2018-03-11 17:38:21 +01:00
xarkes
d5f57a7ccb Fix fg+background colors handling 2018-02-24 19:14:55 +01:00
xarkes
b2b647a5f7 Renamed COLOR_MODE constants 2018-02-24 12:04:48 +01:00
xarkes
5e097dbae1 Killed cons->truecolor in favor of cons->color 2018-02-24 11:47:38 +01:00
xarkes
7e98502666 Code refactoring for the color palette handling
* RConsPrintablePalette initialization
* Remove scr.rgbcolor
* Added RColor support to cons_pal_parse
* Added warnings about pal_set and missing event_update
* Code cleaning (char* to RColor), less rgb_parse
2018-02-23 19:00:47 +01:00
pancake
5194e9012a Honor scr.color in Vbf 2018-02-09 13:59:27 +01:00
pancake
cde9613e46 Fix #9254 - Resize crash in af;VVv 2018-01-27 23:39:02 +01:00
pancake
0cb277c2a6 r_str_ansi_chop -> r_str_ansi_trim, r_str_chop_path -> r_str_trim_path 2018-01-08 03:33:01 +01:00
pancake
fb43dd401a Fix #9060 - base64 encode strings in pfj s 2017-12-22 12:15:51 +01:00
pancake
7692032542 Fix Vdx 2017-12-16 02:01:28 +01:00
xarkes
805cc944b8 Add an command that works like Vdn, to rename flags in anal refs 2017-11-26 20:10:49 +01:00
pancake
2c39e67d80 Initial implementation of the 'ff' command to check the distance between flags 2017-11-23 14:34:07 +01:00
Khairul Kasmiran
ce42385b96 r_meta_del: removed unused str param 2017-10-30 23:01:46 +08:00
alvaro
b03a2587f3 Fix NULL dereference
When specifying no index while using Vbc, atoi(num) crashed r2
2017-10-23 16:39:45 +02:00
Lowly Worm
13f7995120 let you rename vars using vmenu 2017-09-27 00:01:55 -07:00
Lowly Worm
c8dd3db664 just need to fill in the todo for renaming vars 2017-09-26 23:32:34 -07:00
Lowly Worm
1f0ead7b0a make the variable view actually scroll vars 2017-09-26 23:25:20 -07:00
Lowly Worm
a3823f946b actually show the vars in vmenu 2017-09-26 23:13:19 -07:00
pancake
01bb156928 Remove dupped asm: in Vd1 2017-09-22 15:43:49 +02:00
radare
ffb2c9e928 Fix bits issue and add r_str_reverse 2017-07-31 11:33:39 +02:00
Anton Kochkov
8041b3c284 Fix a few leaks 2017-07-29 20:30:02 +08:00
pancake
f0aed31b39 Fix define visual array of data issue Vcjjjd[bBwW] 2017-07-18 02:15:49 +02:00
Marc
1c772a9672 Enhance icj, ic and id in Dex (#7821) 2017-06-27 17:02:14 +02:00
Ayman Khamouma (ak42)
c3bb9e5edf Add command ecH for instruction highlighting support (#7741)
* only use Color_NOBGRESET when actually needed
2017-06-20 15:48:45 -05:00
pancake
54150fa3db Fix last covs 2017-06-12 11:28:54 +02:00
alvarofe
7af491dda5 Fix build 2017-06-09 21:35:38 +02:00
pancake
470c183010 Initial work towards supporting a visual ESIL debugger VpOd 2017-06-09 19:12:20 +02:00
Francesco Tamagni
05a52327e2 Expose class method's flags (#7253)
- a superset of method flags is defined with R_BIN_METH_* constants
- a new field, RBinSymbol->method_flags holds them
- every parser can expose them
- they show up in `ic` commands and VB, either in compact form, JSON and r2 commands
- exposed them for objc and dex
2017-04-12 02:27:27 +02:00
pancake
e694e8dc8c Show demangled method names in VB 2017-04-11 00:16:36 +02:00
pancake
8edcc53a18 Implement asm.section.sub to prefix offsets with section name in disasm 2017-03-28 22:55:58 +02:00
pancake
7db1a11d33 More reindent and use R_EMPTY instead of {0} 2017-03-25 02:30:00 +01:00
davidpolverari
1fb422b532 Fix #6162 - Renames r_str_concat to r_str_append 2017-03-16 22:29:49 +01:00
pancake
f82930fd75 Fix latest covs 2017-03-15 12:12:55 +01:00
pancake
3a97771842 Fix #7018 - VE works in small terminals too 2017-03-14 17:46:37 +01:00
alvarofe
b99f40bc5d Fix build 2017-03-12 22:52:02 +01:00
alvarofe
bb2f1ec3c3 Fix show classes in vmenus.c when empty classes 2017-03-12 22:43:57 +01:00
Álvaro Felipe Melchor
9ee49b509e Added dh to handle hints in visual mode 2017-03-12 11:22: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
e11f033110 Honor Vd[x] in batch mode, also refresh with Vrq 2017-02-06 00:55:03 +01:00
pancake
1cac404463 Vr refresh visual screen 2017-02-06 00:24:01 +01:00
SchumBlubBlub
6c00c9e2d5 Reorganize string macros 2017-02-06 00:00:03 +01:00
pancake
d6aec49504 Add shift information in visual bit editor Vd1 2017-01-29 17:25:13 +01:00
pancake
ca7ae6fc56 Fix #6587 - Add HUD to VB 2017-01-29 03:57:40 +01:00
pancake
c17889a9b4 Fix fd and use it in axt and visual xrefs 2017-01-24 01:41:12 +01:00
pancake
9039228b58 Honor Q as an alias for q! in visual and prompt 2016-12-19 04:46:50 +01:00
Álvaro Felipe Melchor
87724384d1 added r_cons_break_{push/pop} to handle ^C better
Besides an UAF has been fixed afecting only ELF
2016-11-21 16:56:12 +01:00
pancake
4e3837ad8f Fix last COVs 2016-11-10 11:44:00 +01:00
pancake
a9607cf526 Fix #6163 - crash in Vst 2016-11-09 02:35:44 +01:00
Álvaro Felipe Melchor
ae2888dbc7 add r_str_nlen_w to get wide or ascii len
we already have r_str_nlen and r_wstr_clen to get either ascii string or wide
string length but in some cases such as defining string with 'Cs' or 'ds' from
visual mode we do not know if is a wide or ascii so r_str_nlen_w try to detect
and is prone to errors.

We should rename those API and maybe introduce new command to handle both cases
correctly without guessing and letting the user to chose the best
2016-11-07 23:31:22 +01:00