* Fix overflow (Thanks Adriana for the patch!)

This commit is contained in:
pancake 2010-11-29 01:29:21 +01:00
parent 623d91e678
commit 58fc61d486
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ static int rax (char *str) {
}
if (flags & 1) {
ut64 n = (strlen (str)) >> 4;
ut64 n = ((strlen (str))>>1)+1;
buf = malloc (sizeof (char) * n);
memset (buf, '\0', n);
n = r_hex_str2bin (str, (ut8*)buf);