aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2018-03-07 18:16:34 -0800
committerPaul Pluzhnikov <ppluzhnikov@google.com>2018-03-07 18:18:25 -0800
commit6d4f21f6eee9933a2883f2a214953432c13ee1c2 (patch)
treeb1238dfd71d2af6a97ac84d82e05b3459e0ad603 /binutils/readelf.c
parentbdd2279f13c6415e19a9ba0fd91dfff00a9cc80a (diff)
downloadgdb-6d4f21f6eee9933a2883f2a214953432c13ee1c2.zip
gdb-6d4f21f6eee9933a2883f2a214953432c13ee1c2.tar.gz
gdb-6d4f21f6eee9933a2883f2a214953432c13ee1c2.tar.bz2
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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index e3af50a..b85db9f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -10212,7 +10212,7 @@ process_dynamic_section (Filedata * filedata)
static char *
get_ver_flags (unsigned int flags)
{
- static char buff[32];
+ static char buff[128];
buff[0] = 0;