mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
Fix PR binutils/22923.
A static buffer in get_ver_flags may overflow when e.g. German translation is longer than English original. Avoid that by expanding the buffer.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2018-03-07 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||||
|
|
||||||
|
PR binutils/22923
|
||||||
|
* binutils/readelf.c (get_ver_flags): Expand buffer to avoid
|
||||||
|
overflow.
|
||||||
|
|
||||||
2018-03-07 Alan Modra <amodra@gmail.com>
|
2018-03-07 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* configure.ac: Add objdump_private_desc_xcoff for rs6000.
|
* configure.ac: Add objdump_private_desc_xcoff for rs6000.
|
||||||
|
@ -10212,7 +10212,7 @@ process_dynamic_section (Filedata * filedata)
|
|||||||
static char *
|
static char *
|
||||||
get_ver_flags (unsigned int flags)
|
get_ver_flags (unsigned int flags)
|
||||||
{
|
{
|
||||||
static char buff[32];
|
static char buff[128];
|
||||||
|
|
||||||
buff[0] = 0;
|
buff[0] = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user