SWDEV-345021 - add check for pointer
add check for pAllocateArray
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I6c91295c1fe4cffdf22f6b8c07fe0a592c2f4f70
[ROCm/clr commit: 848ae2c06b]
Bu işleme şunda yer alıyor:
işlemeyi yapan:
Shadi Dashmiz
ebeveyn
1a1d2e211e
işleme
b0cbdea221
@@ -1009,6 +1009,9 @@ hipError_t ihipArrayCreate(hipArray** array,
|
||||
hipError_t hipArrayCreate(hipArray** array,
|
||||
const HIP_ARRAY_DESCRIPTOR* pAllocateArray) {
|
||||
HIP_INIT_API(hipArrayCreate, array, pAllocateArray);
|
||||
if (pAllocateArray == nullptr) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
CHECK_STREAM_CAPTURE_SUPPORTED();
|
||||
HIP_ARRAY3D_DESCRIPTOR desc = {pAllocateArray->Width,
|
||||
pAllocateArray->Height,
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle