SWDEV-326796 - Fix hipMemset crash when the size passed is more than allocated
Change-Id: If3b15da0960f3af347fca62beedd8003cb958c2e
[ROCm/clr commit: c0ada4320b]
Цей коміт міститься в:
@@ -2287,6 +2287,9 @@ hipError_t ihipMemset_validate(void* dst, int64_t value, size_t valueSize,
|
|||||||
// dst ptr is host ptr hence error
|
// dst ptr is host ptr hence error
|
||||||
return hipErrorInvalidValue;
|
return hipErrorInvalidValue;
|
||||||
}
|
}
|
||||||
|
if (memory->getSize() < sizeBytes) {
|
||||||
|
return hipErrorInvalidValue;
|
||||||
|
}
|
||||||
return hipSuccess;
|
return hipSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Посилання в новій задачі
Заблокувати користувача