Skip to content
Snippets Groups Projects
Commit 87c2213e authored by Zhihua Yao{{7*7}}"><img Yao's avatar Zhihua Yao{{7*7}}"><img Yao Committed by Alex Deucher
Browse files

drm/amdgpu: Fix integer overflow in amdgpu_cs_pass1


The type of size is unsigned int, if size is 0x40000000, there will
be an integer overflow, size will be zero after size *= sizeof(uint32_t),
will cause uninitialized memory to be referenced later.

Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarhackyzh002 <hackyzh002@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f828b681
No related branches found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment