From d99e48eac2ae84756b2f9174cc033496cc83c9fd Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Thu, 12 Jul 2018 20:44:47 -0400 Subject: [PATCH] NVMarshal: Fix handling of future header version handling If we come across a header of a verions we don't know in this implementation we just have to cause a skip. --- src/tpm2/NVMarshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tpm2/NVMarshal.c b/src/tpm2/NVMarshal.c index a690fc90..5ca1a482 100644 --- a/src/tpm2/NVMarshal.c +++ b/src/tpm2/NVMarshal.c @@ -3384,7 +3384,7 @@ skip_hardware_clock: "Volatile State", "version 3 or later"); rc = VolatileState_TailV3_Unmarshal(buffer, size); - BLOCK_SKIP_READ(skip_future_versions, hdr.version >= 4, buffer, size, + BLOCK_SKIP_READ(skip_future_versions, FALSE, buffer, size, "Volatile State", "version 4 or later"); /* future versions nest-append here */ }