tpm2_getmanufec: fix memory issues
tpm2_getmanufec: fix memory issues

We would get spotty build failures caused by tpm2_getmanufec
failing. Calgrind reported issues with b64 decode.

That code assumed the pointer returned by openssl bio routines
was NULL terminated, and that is not the case and strlen was
reading past the end.

Properly terminate the b64 decoded string.

Signed-off-by: William Roberts <60148e894dabf0b83bde1d460768794cd453c455@intel.com>

martinezjavier/tpm2-tools,01org/tpm2.0-tools,01org/tpm2.0-tools,martinezjavier/tpm2-tools,martinezjavier/tpm2-tools,martinezjavier/tpm2-tools,01org/tpm2.0-tools