mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 08:38:10 +08:00
Fixes a bug in the previous delat to tekhex.c which meant that valid tekhex files were being rejected.
* tekhex.c (getvalue): Fix thinko in test for correct extraction of value. (getsym): Return false if there was not enough data to extract the symbol.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2015-01-09 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* tekhex.c (getvalue): Fix thinko in test for correct extraction
|
||||||
|
of value.
|
||||||
|
(getsym): Return false if there was not enough data to extract the
|
||||||
|
symbol.
|
||||||
|
|
||||||
2015-01-09 Anthony Green <green@moxielogic.com>
|
2015-01-09 Anthony Green <green@moxielogic.com>
|
||||||
|
|
||||||
* elf32-moxie.c (ELF_MACHINE_ALT1): Define.
|
* elf32-moxie.c (ELF_MACHINE_ALT1): Define.
|
||||||
|
@ -288,7 +288,7 @@ getvalue (char **srcp, bfd_vma *valuep, char * endp)
|
|||||||
|
|
||||||
*srcp = src;
|
*srcp = src;
|
||||||
*valuep = value;
|
*valuep = value;
|
||||||
return len == 0;
|
return len == -1U;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bfd_boolean
|
static bfd_boolean
|
||||||
@ -309,7 +309,7 @@ getsym (char *dstp, char **srcp, unsigned int *lenp, char * endp)
|
|||||||
dstp[i] = 0;
|
dstp[i] = 0;
|
||||||
*srcp = src + i;
|
*srcp = src + i;
|
||||||
*lenp = len;
|
*lenp = len;
|
||||||
return TRUE;
|
return i == len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct data_struct *
|
static struct data_struct *
|
||||||
|
Reference in New Issue
Block a user