Re: [PATCH libdrm 1/1] amdgpu: Do not write beyond allocated memory when parsing ids

2017-09-04 Thread Michel Dänzer
On 02/09/17 04:05 AM, Jan Vesely wrote: > Fixes crash when/usr/share/libdrm/amdgpu.ids contains > ASIC_ID_TABLE_NUM_ENTRIES + 1 entries. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102432 > Signed-off-by: Jan Vesely Thanks for the good catch. > diff --git a/amdgpu/amdgpu_asic_i

[PATCH libdrm 1/1] amdgpu: Do not write beyond allocated memory when parsing ids

2017-09-01 Thread Jan Vesely
Fixes crash when/usr/share/libdrm/amdgpu.ids contains ASIC_ID_TABLE_NUM_ENTRIES + 1 entries. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102432 Signed-off-by: Jan Vesely --- Compile tested only. amdgpu/amdgpu_asic_id.c | 15 --- 1 file changed, 8 insertions(+), 7 deletio