mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
Fix illegal memory access parsing corrupt DWARF information.
PR 29936 * dwarf2.c (concat_filename): Fix check for a directory index off the end of the directory table.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2022-12-23 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR 29936
|
||||||
|
* dwarf2.c (concat_filename): Fix check for a directory index off
|
||||||
|
the end of the directory table.
|
||||||
|
|
||||||
2022-12-21 Nick Clifton <nickc@redhat.com>
|
2022-12-21 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* po/ro.po: Updated Romanian translation.
|
* po/ro.po: Updated Romanian translation.
|
||||||
|
@ -2047,7 +2047,8 @@ concat_filename (struct line_info_table *table, unsigned int file)
|
|||||||
|
|
||||||
if (table->files[file].dir
|
if (table->files[file].dir
|
||||||
/* PR 17512: file: 0317e960. */
|
/* PR 17512: file: 0317e960. */
|
||||||
&& table->files[file].dir <= table->num_dirs
|
&& table->files[file].dir
|
||||||
|
<= (table->use_dir_and_file_0 ? table->num_dirs - 1 : table->num_dirs)
|
||||||
/* PR 17512: file: 7f3d2e4b. */
|
/* PR 17512: file: 7f3d2e4b. */
|
||||||
&& table->dirs != NULL)
|
&& table->dirs != NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user