SWDEV-327299 - strncpy to memcpy to avoid overflow warning
Change-Id: I0bb5aed76e74b4580bae71b6cb1ef2c17293a126
[ROCm/clr commit: ba6d6b377d]
此提交包含在:
1 父節點
7649115859
當前提交
c586965e36
1 file changed
+1
-1
@@ -144,7 +144,7 @@ hipError_t hipDeviceGetName(char *name, int len, hipDevice_t device) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
::strncpy(name, info.boardName_, (nameLen + 1));
|
||||
::memcpy(name, info.boardName_, (nameLen + 1));
|
||||
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
|
||||
Reference in new issue
封鎖使用者