From 724630896b2ae035c4304a44ce1012a867f8994c Mon Sep 17 00:00:00 2001 From: pancake Date: Sat, 2 Nov 2013 12:14:39 +0100 Subject: [PATCH] Fix #301 - Invalid size: 5 while disassembling x86 TE binary --- libr/util/mem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libr/util/mem.c b/libr/util/mem.c index c3285ebffe..b1b2168426 100644 --- a/libr/util/mem.c +++ b/libr/util/mem.c @@ -184,7 +184,9 @@ R_API void r_mem_copyendian (ut8 *dest, const ut8 *orig, int size, int endian) { dest[7] = buffer[0]; break; default: - eprintf ("Invalid size: %d\n", size); + if (dest != orig) + memmove (dest, orig, size); + //eprintf ("Invalid endian copy of size: %d\n", size); } }