t-base-300-v003: Fix error in GP client lib when overwriting buffer with strcpy, bug TD-117.
Signed-off-by: Oana Medvesan <medvesan.oana@gmail.com>
diff --git a/MobiCoreDriverLib/ClientLib/GP/tee_client_api.cpp b/MobiCoreDriverLib/ClientLib/GP/tee_client_api.cpp
index e9e53bc..1475e06 100755
--- a/MobiCoreDriverLib/ClientLib/GP/tee_client_api.cpp
+++ b/MobiCoreDriverLib/ClientLib/GP/tee_client_api.cpp
@@ -234,7 +234,7 @@
}
//Copy version indicator field
- strcpy(tci->header, "TCIGP000");
+ memcpy(tci->header, "TCIGP000", sizeof(tci->header));
// Fill in invalid values for secure world to overwrite
tci->returnStatus = 0;