commit | b8c5ecc6967ef4f63f4fca949db819be74dc2b4b | [log] [tgz] |
---|---|---|
author | Vadim Bendebury <vbendeb@chromium.org> | Mon Oct 05 14:43:25 2015 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Fri Oct 16 19:06:00 2015 +0000 |
tree | 05be91455d43a70c5b60055905f2297cb6773ee0 | |
parent | 0820d9af6efddac7e6b31ac2f7517c902a61eb67 [diff] |
generator: fix TPM2B_xxxx marshaling The library code does not care to properly set up size fields of some TPM2B_xxx objects generated while processing TPM commands. This objects have their size field decorated with a trailing equal sign in the description in Part 2. This patch modifies the parser to issue additional code to calculate the payload size when marshaling those structures. BUG=chrome-os-partner:44608 TEST=This change fixes 176 tests listed in https://goo.gl/KwVOv3 Change-Id: I14a5fbc5f5c266a6e3d7bd00ac60a134739e7363 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/305498 Reviewed-by: Darren Krahn <dkrahn@chromium.org>