aboutsummaryrefslogtreecommitdiff
path: root/Marshal_PolicyGetDigest.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-10-20 16:52:35 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-21 01:17:57 +0000
commit67fb16032ad9462343032236d5ae96ef90cf2499 (patch)
tree45a24bf2b1e11c85f321d3c01560fcb89c14affc /Marshal_PolicyGetDigest.c
parentb37f66b9433f3a7be7e1e038dbd41c6d90b6a07e (diff)
downloadtpm2-67fb16032ad9462343032236d5ae96ef90cf2499.tar.gz
generator: report error if input buffer is larger than expected
One of the tests expects the TPM to return the TPM_RC_SIZE error in case the buffer containing the digest exceeds the expected size of the digest, but the simulator ignores this size discrepancy. Let's make the implementation exact and always return TPM_RC_SIZE if unmarshaling returns success but there are some leftover data. BUG=chrome-os-partner:43025 TEST=fixed test is described in https://goo.gl/kQnud0 Change-Id: Ifcd98b09070b38356ee7975bff3b1710d34e17b9 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/307601 Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
Diffstat (limited to 'Marshal_PolicyGetDigest.c')
0 files changed, 0 insertions, 0 deletions