Fix #7070 - oob read wrong init buffer asm_sh.c

This commit is contained in:
alvarofe 2017-03-20 23:28:38 +01:00
parent c9b46d6c9a
commit ce25037120

View File

@ -11,7 +11,7 @@
static unsigned long Offset = 0;
static char *buf_global = NULL;
static unsigned char bytes[2];
static unsigned char bytes[4];
static int sh_buffer_read_memory (bfd_vma memaddr, bfd_byte *myaddr, unsigned int length, struct disassemble_info *info) {
//this is obviously wrong. but how can we read arbitrary data @ memaddr from here?