libebl: Use static number for array stack allocation in openbackend.
authorMark Wielaard <mjw@redhat.com>
Sun, 17 May 2015 16:49:10 +0000 (18:49 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 27 May 2015 21:04:31 +0000 (23:04 +0200)
commitdf1708a2d69dc3e58f10ed06a6475bb63bf21dcf
treeffa91fff7b2931102b09a72c571cb4ae60c52f82
parente6261005eaa1cf19107fb8963f8cb55e2c1367a7
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>
libebl/ChangeLog
libebl/eblopenbackend.c