Commit 7c69a47f authored by Kylene Jo Hall's avatar Kylene Jo Hall Committed by Linus Torvalds

[PATCH] tpm: fix missing string

A string corresponding to the tcpa_pc_event_id POST_CONTENTS was missing
causing an overflow bug when access was attempted in the get_event_name
function.

This bug was found by Coverity.
Signed-off-by: default avatarKylene Hall <kjhall@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 59e89f3a
...@@ -120,6 +120,7 @@ static const char* tcpa_pc_event_id_strings[] = { ...@@ -120,6 +120,7 @@ static const char* tcpa_pc_event_id_strings[] = {
"S-CRTM Version", "S-CRTM Version",
"S-CRTM Contents", "S-CRTM Contents",
"S-CRTM POST Contents", "S-CRTM POST Contents",
"POST Contents",
}; };
/* returns pointer to start of pos. entry of tcg log */ /* returns pointer to start of pos. entry of tcg log */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment