SWDEV-326796 - Fix hipMemset crash when the size passed is more than allocated

Change-Id: If3b15da0960f3af347fca62beedd8003cb958c2e


[ROCm/clr commit: c0ada4320b]
이 커밋은 다음에 포함됨:
Satyanvesh Dittakavi가 2022-04-07 08:49:54 -04:00를 커밋했습니다
1 부모 3cec88a755
커밋 83e2a8a892
1 파일이 변경됨
+3
+3
파일 보기
@@ -2287,6 +2287,9 @@ hipError_t ihipMemset_validate(void* dst, int64_t value, size_t valueSize,
// dst ptr is host ptr hence error
return hipErrorInvalidValue;
}
if (memory->getSize() < sizeBytes) {
return hipErrorInvalidValue;
}
return hipSuccess;
}