Commit Graph

1492 Commits

Author SHA1 Message Date
pancake
1ebc5e29ec Fix #6308 - Fix crash in /P and enhance the output 2016-12-10 23:29:32 +01:00
Álvaro Felipe Melchor
028e8f0ca3 Fix few covs 2016-12-04 22:26:17 +01:00
pancake
56f5c29d64 Fix asm.dwarf, add asm.dwarf.{file,abspath} 2016-11-22 23:59:04 +01:00
pancake
7b94a79dcd Initial support for C++ classes extracted from the demangler 2016-11-22 14:20:52 +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
aba4ca918f Fix #6222 - ej valid JSON format 2016-11-20 23:15:12 +01:00
pancake
09594bdde9 Fix compiler optimization bug where -1 turned out into 255 2016-11-18 13:28:14 +01:00
pancake
4bcdd33f25 Honor utf8 in r_str_is_printable 2016-11-18 13:28:06 +01:00
pancake
5789279503 Fix overflow in r_base64_dec_dyn 2016-11-18 03:38:09 +01:00
Alex Kornitzer
1a81071d9d A correct implementation of r_list_join
From what I can see this function has never functioned correctly. At
most it would sort of maybe join two lists. This should resolve this
problem.

Signed-off-by: Álvaro Felipe Melchor <alvaro.felipe91@gmail.com>
2016-11-16 20:15:45 +01:00
Álvaro Felipe Melchor
b69ce7ba00 Fix oob write 2016-11-15 23:58:18 +01:00
pancake
d75aabc4f7 Initial speedup for dwarf 50s -> 0.4s, wip 2016-11-15 22:01:08 +01:00
pancake
15ee118550 Fix r_num_is_float() 2016-11-13 22:12:19 +01:00
pancake
7fc002dfd9 Remove unnecessary call to impaddr() and some reindents 2016-11-13 01:40:44 +01:00
pancake
8804952eec Fix some uninitialized arguments 2016-11-08 15:37:44 +01:00
pancake
ca730772f4 Fix wrong usage of sizeof(ptr) 2016-11-08 15:12:43 +01:00
pancake
ea5c83ce4e Fix a bunch of malloc(0) 2016-11-08 15:09:52 +01:00
pancake
93c0293664 Fix overflow in r_str_ansi_crop 2016-11-08 13:25:08 +01:00
pancake
f3be6a8cda Update android paths for the new app 2016-11-08 10:24:10 +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
Álvaro Felipe Melchor
9c3e2a46b5 support define wide string with ds in visual mode 2016-11-07 20:54:00 +01:00
pancake
9c57ff07a6 Implement Po& and r2 -tp to load projects in a thread 2016-11-04 23:07:02 +01:00
Álvaro Felipe Melchor
776577d553 get rid of rabin2 when ik* 2016-11-03 16:51:51 +01:00
Álvaro Felipe Melchor
d5e4a2125f Fix an oob read in p_format 2016-11-03 13:11:17 +01:00
Álvaro Felipe Melchor
1f4a0bcd4b Fix regression in visual graph mode 2016-11-02 13:21:21 +01:00
pancake
d7c13a36b1 Fix #3763 - Add oi command to raise/close fd by index 2016-11-02 03:27:37 +01:00
pancake
f411df9881 Fix #2653 - Honor hex.cols in pc* 2016-11-02 01:06:40 +01:00
Álvaro Felipe Melchor
a0b4aab22a Fix #5935 - improvements on ah command
make anal hint print more grep friendly
fix ah- command
honor offset in ah? and ah*
implement ahb-, ahS-, ...etc
2016-11-01 23:52:42 +01:00
Álvaro Felipe Melchor
f40328b89a some cleanup and update r_core_anal_get_bbaddr 2016-11-01 23:52:42 +01:00
pancake
52dd1f85f0 Add asm.decoff 2016-11-01 23:30:36 +01:00
pancake
d1937cd367 Fix pf regressions 2016-10-31 00:43:24 +01:00
pancake
3858232030 Fix some pf regressions 2016-10-30 23:57:25 +01:00
pancake
7ddcd86400 Fix cmd_pf tests 2016-10-30 23:24:20 +01:00
pancake
e31164a5fa Fix latest covs 2016-10-29 13:06:11 +02:00
pancake
1ab7c43efe Fix #6054 - divbyzero in pcp 2016-10-27 15:32:00 +02:00
pancake
e925e04ea2 Fix crash in disassembler 2016-10-27 01:42:00 +02:00
pancake
589ac97bda Fix some overflow-related covs 2016-10-26 23:40:17 +02:00
pancake
8d37adc546 Fix all pending null-deref covs 2016-10-26 23:22:04 +02:00
pancake
8b8151d12e Fix latest covs 2016-10-26 11:25:50 +02:00
Álvaro Felipe Melchor
aa5124905d fix oob str.c 2016-10-25 14:37:57 +02:00
pancake
d45999d10e Implement column sorting in RCons.grep 2016-10-25 12:03:55 +02:00
Álvaro Felipe Melchor
a2befc8adc Enhance performance in r_anal_fcn_get_in() using tinyrange and sorted adds
* added sorted parameter in r_list
* use r_list_sort in r_range_sort
* some clean up
* added is_data into RBinSection
* use tinyrange by default to improve speed
2016-10-25 01:12:06 +02:00
pancake
02950398a9 Add utf8 rune support for RCons.canvas 2016-10-21 01:24:40 +02:00
pancake
be9df39f6f Fixed 40 null derefs reported by coverity 2016-10-20 15:02:25 +02:00
Álvaro Felipe Melchor
44d9048169 Fix #5986 - use RStack in r_cons_push/pop
clean up cons and stack code
extend RStack to have free function
use RStack in r_cons_push/pop
2016-10-19 00:11:05 +02:00
pancake
9f4c8768a7 Implement prj.files and fix some bugs in project listing and saving 2016-10-17 23:58:39 +02:00
pancake
cea2c80d56 Show flags in dm, add dmq and add resolver in rnum 2016-10-16 02:34:54 +02:00
pancake
a48df016ff Ignore newlines in r_hex_str2bin input 2016-10-09 23:54:21 +02:00
pancake
5ac2be945e Fix #5867 - Remove all references to __FILE__ or __LINE__ 2016-10-09 11:01:41 +02:00
pancake
cd26e34a7b Blind fix #5938 - remove some __FILE__ references 2016-10-08 03:01:22 +02:00
BlueC0re
8a5b5ae7b7 added support for escape sequences in r_num_as_string (#5897) 2016-10-06 11:24:39 +02:00
radare
20ec177ba0 Initial implementation of flag zones 2016-10-06 02:40:26 +02:00
Álvaro Felipe Melchor
44155e609c select sorting algorithm based on list's length 2016-10-06 00:34:52 +02:00
Álvaro Felipe Melchor
5b95f046f8 s/r_list_merge_sort/r_list_sort 2016-10-06 00:00:52 +02:00
Álvaro Felipe Melchor
fd542c75bb changes into merge sort to reassemble behaviour with sort 2016-10-06 00:00:50 +02:00
Álvaro Felipe Melchor
f6b94d7b75 changed r_list_length to use list->length 2016-10-06 00:00:49 +02:00
Álvaro Felipe Melchor
e00123d259 removed unused api from r_list 2016-10-06 00:00:46 +02:00
Álvaro Felipe Melchor
2be521421b Add merge sort algorithm into r_list (#5917) 2016-10-05 15:59:41 +02:00
Riccardo Schirone
290fa7a7e6 util: fix behaviour of r_str_rwx and r_str_rwx_i (#5915) 2016-10-05 15:49:36 +02:00
Riccardo Schirone
9b9a839215 util/debruijn: put terminator at the end of buf 2016-10-05 10:36:05 +02:00
Riccardo Schirone
888841ee33 util: fix debruijin arguments meaning and uses (#5914) 2016-10-05 02:43:04 +02:00
pancake
9eb1a2903b Enforce hexpair parsing rules. To fix rahash2 -S foo without s: 2016-10-04 15:46:46 +02:00
Álvaro Felipe Melchor
7ba81f6886 More work into ragg2 2016-10-02 23:46:57 +02:00
Álvaro Felipe Melchor
62fe6eb85e more work into sys.c 2016-10-02 23:08:13 +02:00
Álvaro Felipe Melchor
b09e19041f Fix oob read in ragg2 2016-10-02 22:57:50 +02:00
Álvaro Felipe Melchor
218474ec13 Remove unused variable and coding style file.c 2016-10-02 02:05:23 +02:00
pancake
c7877075a1 Minor tweak to get better colors in dalvik disasm 2016-10-01 17:44:25 +02:00
alvaro_fe
c8130c4198 Fix crash in reflines 2016-09-27 19:49:39 +02:00
alvaro_fe
413ff4313a Fix some coverities 2016-09-27 18:56:34 +02:00
alvaro_fe
ee876d4bf1 Fix build 2016-09-26 17:07:39 +02:00
alvaro_fe
9763de3b0b coding styles changes 2016-09-26 17:00:03 +02:00
Damien Zammit
c32624b86b Bigendian fixes: Mainly for mach0 (WIP) 2016-09-26 00:40:52 +02:00
Álvaro Felipe Melchor
d3add04b5a Fix oob read 2016-09-24 02:14:53 +02:00
Álvaro Felipe Melchor
f17814d9d8 update pds changes 2016-09-24 00:30:13 +02:00
Álvaro Felipe Melchor
187ecaec7b Follow wide strings in disasm 2016-09-23 17:48:40 +02:00
pancake
d1088fa95d Add radiff2 -S to specify which column to sort for code diffing 2016-09-22 20:33:26 +02:00
saucec0de
c908e0f818 Fixing ds in x86 (#5802)
* Fixing ds in x86
* Several updates due to new OP_TYPE
2016-09-22 13:42:06 +02:00
pancake
43a3eacddb Enhance Visual bit editor with 30% more colors and keys! 2016-09-22 12:19:21 +02:00
pancake
f5b255603a Bring back the old buffer_distance algorithm, make levenstein optional 2016-09-21 12:07:44 +02:00
pancake
6d6a23c456 Add scr.flush and handle ^C in px/pxr/pd/.. 2016-09-20 00:11:59 +02:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
pancake
14db7949bb Update pf output 2016-09-19 05:27:42 +02:00
pancake
dbc4cd4cad Fix some JSON bugs in pf 2016-09-19 02:09:42 +02:00
pancake
f404b85d15 Fix /j JSON output by encoding results in base64 2016-09-18 21:58:03 +02:00
pancake
4df85046fd Add r_buf_resize and make ihex:// .resize() work 2016-09-15 17:19:39 +02:00
pancake
22717a7998 Fix #5754 - Honor ./ and abspath in r_file_path for r2 -d 2016-09-15 12:52:50 +02:00
jvoisin
6b56489eaf Fix a few warnings 2016-09-13 20:35:15 +02:00
pancake
a59e0ce083 Fix crash in gdb:// and some oobreads 2016-09-13 02:38:08 +02:00
Anton Todorov
6a6b4ec7f3 Remove unused variable in r_debruijn_offset() 2016-09-12 18:31:48 +02:00
pancake
edb720d791 Add r_str_{starts|ends}with 2016-09-10 13:19:43 +02:00
pancake
6df53f8bb1 Fixes for enum types in t and pf 2016-09-06 04:29:42 +02:00
Álvaro Felipe Melchor
158d3fcc6b More ELFic works 2016-09-04 14:03:35 +02:00
pancake
1ad646698e Add ?w and drop anal.vars check in afva command 2016-09-03 14:22:31 +02:00
Maijin
34a1bdf23c Fix #5640 2016-09-02 22:27:24 +02:00
Tiago Gasiba
f0a2d8657d Add support for conditional breakpoints running r2 commands 2016-09-01 19:11:46 +02:00
pancake
945d6690f9 Fix latest coverities 2016-09-01 12:39:32 +02:00
pancake
dc7d65c07a Extend arm64 regprofile for 16 and 8bit registers 2016-08-30 23:21:23 +02:00
pancake
e04498ac02 Add rabin2 -X and r_bin_package for FAT and ZIP 2016-08-30 04:26:20 +02:00
Sebastien Marie
4c7f2e722e r_sys_mkdir() is now a function instead of a macro to properly check the sandbox 2016-08-28 22:14:28 +02:00
Álvaro Felipe Melchor
84e871e456 Fix #5476 - fix UAF executing twice izz~:0 2016-08-28 17:36:18 +02:00