rocr: Prevent int overflow in arithmetic operation

Cast range->x and range->y to uint64_t before performing multiplication

Signed-off-by: Alysa Liu <Alysa.Liu@amd.com>


[ROCm/ROCR-Runtime commit: 77b86ca908]
이 커밋은 다음에 포함됨:
Alysa Liu 작성하고 Liu, Alysa가 2025-06-11 19:36:36 -04:00를 커밋함
1 부모 ec4830eb5c
커밋 ab747b1ffd
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -646,7 +646,7 @@ BlitSdma<RingIndexTy, HwIndexMonotonic, SizeToCountOffset, useGCR>::SubmitCopyRe
BuildCopyRectCommand(append, dst, dst_offset, src, src_offset, range);
}
uint64_t size = range->x * range->y * range->z;
uint64_t size = static_cast<uint64_t>(range->x) * static_cast<uint64_t>(range->y) * range->z;
std::vector<core::Signal*> gang_signals(0);