diff options
| author | Mark Wielaard <[email protected]> | 2016-07-06 21:31:54 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2016-07-11 09:58:55 +0200 |
| commit | 8c481b6fc53a1d1f50518896004dc5221862e126 (patch) | |
| tree | 344765fede88dbbce6d4ade17eb8c408c9f07479 /src/ChangeLog | |
| parent | 8b5f017ddf1684e225ef59f9243ef411b2556e9c (diff) | |
unstrip: Fix off by one array access with unstripped_strent.
When configuring with --enable-sanitize-undefined the latest GCC found
an array out of bounds access when running the un-strip-strmerge.sh test.
We keep an array of section names. But skipped section zero, since it
didn't have a name. We should however not actually skip the first array
index (zero) when storing and reading the names.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 21fc7d51..fbe4afc5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2016-07-06 Mark Wielaard <[email protected]> + + * unstrip.c (copy_elided_sections): Use unstripped_strent[] from + index zero, instead of one. + 2016-06-28 Richard Henderson <[email protected]> * elflint.c (valid_e_machine): Add EM_BPF. |
