329 Commits

Author SHA1 Message Date
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
4bcdd33f25 Honor utf8 in r_str_is_printable 2016-11-18 13:28:06 +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
7fc002dfd9 Remove unnecessary call to impaddr() and some reindents 2016-11-13 01:40:44 +01:00
pancake
93c0293664 Fix overflow in r_str_ansi_crop 2016-11-08 13:25:08 +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
Álvaro Felipe Melchor
776577d553 get rid of rabin2 when ik* 2016-11-03 16:51:51 +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
pancake
52dd1f85f0 Add asm.decoff 2016-11-01 23:30:36 +01:00
Álvaro Felipe Melchor
aa5124905d fix oob str.c 2016-10-25 14:37:57 +02:00
pancake
02950398a9 Add utf8 rune support for RCons.canvas 2016-10-21 01:24:40 +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
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
Á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
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
pancake
edb720d791 Add r_str_{starts|ends}with 2016-09-10 13:19:43 +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
0b32cf7c90 Fix recent regressions for DEX, fix entrypoints, {s,i}fields and lot of segfaults! 2016-08-28 13:19:04 +02:00
Rakholiya Jenish
c86010e702 pf indent fix and follow code standards (#5607) 2016-08-25 17:06:23 +02:00
Álvaro Felipe Melchor
7df4fc3ce4 Fix some coverities 2016-08-24 22:02:38 +02:00
Rakholiya Jenish
a461d53397 Implement stack based splitting of args
* stack based splitting of args
* fix r_str_rchr
2016-08-24 16:33:45 +02:00
Álvaro Felipe Melchor
34c6e3e1a1 Fix #5543 - oob write in Sr command (#5598) 2016-08-24 00:23:14 +02:00
Rakholiya Jenish
18cd2f5ec5 anon pf struct and add n/N
add anon nested struct help and fix tests

fix tests

minor changes

add support for unsigned and signed char, short, int and long long

add help

cleanup

minor fix
2016-08-22 11:25:52 +02:00
pancake
f5a73b73d7 Remove dupped hex2int function 2016-07-27 12:51:55 +02:00
Álvaro Felipe Melchor
3c8066ce57 fix crash in nz assembler 2016-07-26 22:08:25 +02:00
Álvaro Felipe Melchor
01fe87d467 fix coverity and some coding style 2016-07-21 22:56:58 +02:00
Maijin
c274afe748 Fix #3286 - Use stdbool.h 2016-07-12 22:15:19 +02:00
Álvaro Felipe Melchor
34fae270dd added free function into RHashTable (#5249) 2016-07-02 11:50:30 +02:00
megabug
534cc69a79 Fix trimbits (#5120) 2016-06-11 12:09:39 +02:00
Jeffrey Crowell
412f81590c note a caveat in r_str_ichr 2016-06-10 03:11:26 +00:00
Jeffrey Crowell
ef59d3aa7f make a note of TODO in str.c 2016-06-10 02:17:31 +00:00
Jeffrey Crowell
50417301a9 fix description of r_str_word_set0 2016-06-09 23:47:41 +00:00
Jeffrey Crowell
4cd58acaca comment more string functions, kill some duplicated functions. 2016-06-09 23:43:46 +00:00
Jeffrey Crowell
1b1578e25e fix accidental commit that broke hex2int 2016-06-09 18:40:52 +00:00
Jeffrey Crowell
98d258339a more r_util comments 2016-06-09 18:16:47 +00:00
Jeffrey Crowell
b4c39b5b35 begin adding some documentation to r_str functions
r_util needs some documentation if it is to be unit tested.
2016-06-09 17:42:27 +00:00
Jeffrey Crowell
4d5630ed30 make r_str_replace_char_once actually do only once 2016-06-09 00:11:59 -04:00
Jeffrey Crowell
a25ef5b3bb remove duplicate char counting functions in r_util 2016-06-08 16:40:44 +00:00
pancake
10bbfc7d22 Trim strbits by block 2016-06-08 11:51:52 +02:00
Jeffrey Crowell
a1bdabf787 fix offbyone in r_str_bits64
manifested in odd numbers having leading 1
2016-06-08 01:48:43 -04:00
Jeffrey Crowell
0e688df308 style fixup for str.c r_util.h 2016-06-08 01:39:07 -04:00
Jeffrey Crowell
f92b37956a fix eval command truncating binary to 8 bits
closes #4975

add new function r_str_bits64 to convert any number to a 64bit binary
value.
2016-06-08 01:31:55 -04:00