SWDEV-345021 - add check for pointer
add check for pAllocateArray Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: I6c91295c1fe4cffdf22f6b8c07fe0a592c2f4f70
Este cometimento está contido em:
cometido por
Shadi Dashmiz
ascendente
67aa32d697
cometimento
848ae2c06b
@@ -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,
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador