mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
* dbxread.c (set_namestring): Remove cast to unsigned. Check N_STRX
overflow.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2009-11-17 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* dbxread.c (set_namestring): Remove cast to unsigned. Check N_STRX
|
||||
overflow.
|
||||
|
||||
2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* features/m68k-core.xml: New file.
|
||||
|
@ -965,8 +965,9 @@ set_namestring (struct objfile *objfile, const struct internal_nlist *nlist)
|
||||
{
|
||||
char *namestring;
|
||||
|
||||
if (((unsigned) nlist->n_strx + file_string_table_offset)
|
||||
>= DBX_STRINGTAB_SIZE (objfile))
|
||||
if (nlist->n_strx + file_string_table_offset
|
||||
>= DBX_STRINGTAB_SIZE (objfile)
|
||||
|| nlist->n_strx + file_string_table_offset < nlist->n_strx)
|
||||
{
|
||||
complaint (&symfile_complaints, _("bad string table offset in symbol %d"),
|
||||
symnum);
|
||||
|
Reference in New Issue
Block a user