diff options
author | Mark Wielaard <mjw@redhat.com> | 2015-05-17 18:49:10 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-05-27 23:04:31 +0200 |
commit | df1708a2d69dc3e58f10ed06a6475bb63bf21dcf (patch) | |
tree | ffa91fff7b2931102b09a72c571cb4ae60c52f82 /libebl/ChangeLog | |
parent | e6261005eaa1cf19107fb8963f8cb55e2c1367a7 (diff) | |
download | elfutils-df1708a2d69dc3e58f10ed06a6475bb63bf21dcf.tar.gz |
libebl: Use static number for array stack allocation in openbackend.
Help the compiler see we stack allocate a small array. Add assert to check
no machine prefix is ever larger than 16. Current maximum number is 7.
This prevents gcc warning about possible unbounded stack usage with
-Wstack-usage.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'libebl/ChangeLog')
-rw-r--r-- | libebl/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog index 3655e72c..9ca7b47f 100644 --- a/libebl/ChangeLog +++ b/libebl/ChangeLog @@ -1,3 +1,8 @@ +2015-05-17 Mark Wielaard <mjw@redhat.com> + + * eblopenbackend.c (MAX_PREFIX_LEN): New define (16). + (openbackend): Stack allocate symname array using MAX_PREFIX_LEN. + 2015-01-27 Mark Wielaard <mjw@redhat.com> * libebl.h: Add comment from README that this is completely |