mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
pts: Don't rely on BIOS event buffer to be null terminated
This commit is contained in:
parent
8384527ff5
commit
fbb70c968b
@ -297,7 +297,7 @@ pts_ima_bios_list_t* pts_ima_bios_list_create(tpm_tss_t *tpm, char *file,
|
|||||||
case EV_S_CRTM_CONTENTS:
|
case EV_S_CRTM_CONTENTS:
|
||||||
case EV_IPL:
|
case EV_IPL:
|
||||||
if (event_type == EV_NO_ACTION && event_len == 17 &&
|
if (event_type == EV_NO_ACTION && event_len == 17 &&
|
||||||
streq(event_buf, "StartupLocality"))
|
strpfx(event_buf, "StartupLocality"))
|
||||||
{
|
{
|
||||||
DBG2(DBG_PTS, " 'StartupLocality' %x", event_buf[16]);
|
DBG2(DBG_PTS, " 'StartupLocality' %x", event_buf[16]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user