* [tpm2] [tpm2-software/tpm2-tools] 9ad908: test: fix compilation
@ 2018-02-23 0:41 GitHub
0 siblings, 0 replies; only message in thread
From: GitHub @ 2018-02-23 0:41 UTC (permalink / raw)
To: tpm2
[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]
Branch: refs/heads/master
Home: https://github.com/tpm2-software/tpm2-tools
Commit: 9ad90862b0d66e003c625885e235c88bc5ffafb9
https://github.com/tpm2-software/tpm2-tools/commit/9ad90862b0d66e003c625885e235c88bc5ffafb9
Author: Tadeusz Struk <tadeusz.struk(a)intel.com>
Date: 2018-02-22 (Thu, 22 Feb 2018)
Changed paths:
M test/unit/test_tpm2_alg_util.c
Log Message:
-----------
test: fix compilation
With gcc v7.3.1 test_tpm2_alg_util.c fails with:
In file included from test/unit/test_tpm2_alg_util.c:33:0:
test/unit/test_tpm2_alg_util.c: In function ‘test_pcr_parse_digest_list_compound’:
test/unit/test_tpm2_alg_util.c:349:78: error: array subscript is above array bounds [-Werror=array-bounds]
fail_msg("Missing algorithm test for: %u", dspec->digests.digests[i].hashAlg);
~~~~~~~~~~~~~~~~~~~~~~^~~
Fix this by explicitly checking the array bounds.
Signed-off-by: Tadeusz Struk <tadeusz.struk(a)intel.com>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-23 0:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-23 0:41 [tpm2] [tpm2-software/tpm2-tools] 9ad908: test: fix compilation GitHub
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.