aboutsummaryrefslogtreecommitdiff
path: root/security/trousers/files/patch-src_tcs_tcs__aik.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/trousers/files/patch-src_tcs_tcs__aik.c')
-rw-r--r--security/trousers/files/patch-src_tcs_tcs__aik.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/trousers/files/patch-src_tcs_tcs__aik.c b/security/trousers/files/patch-src_tcs_tcs__aik.c
new file mode 100644
index 000000000000..c4e4113c72b7
--- /dev/null
+++ b/security/trousers/files/patch-src_tcs_tcs__aik.c
@@ -0,0 +1,11 @@
+--- src/tcs/tcs_aik.c.orig 2016-06-20 15:21:26 UTC
++++ src/tcs/tcs_aik.c
+@@ -66,7 +66,7 @@ UnloadBlob_SYMMETRIC_KEY(UINT64 *offset,
+ UnloadBlob_UINT16(offset, &key->size, blob);
+
+ if (key->size > 0) {
+- key->data = (BYTE *)malloc(key->size);
++ key->data = malloc(key->size);
+ if (key->data == NULL) {
+ LogError("malloc of %hu bytes failed.", key->size);
+ key->size = 0;