Merge "HwBlob: s/malloc/calloc/" into oc-dev am: 123ffb6202 am: f489aed3c1

am: 96f4f9e2e9

Change-Id: I25c279ca932b02850bda6bcc58453402369bd8a4
This commit is contained in:
Steven Moreland
2019-05-08 14:57:21 -07:00
committed by android-build-merger

View File

@@ -85,7 +85,7 @@ JHwBlob::JHwBlob(JNIEnv *env, jobject thiz, size_t size)
mOwnsBuffer(true),
mHandle(0) {
if (size > 0) {
mBuffer = malloc(size);
mBuffer = calloc(size, 1);
}
}