Re: [Intel-gfx] [PATCH i-g-t 2/3] lib/drm_fdinfo: Ensure buffer is null terminated

2022-05-30 Thread Petri Latvala
On Fri, May 27, 2022 at 11:50:41AM +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Ensure buffer is null terminated at the point where the read ended and not > at the end of the whole buffer. Otherwise string parsing can stray into > un-initialised memory. > > Signed-off-by: Tvrtko

[Intel-gfx] [PATCH i-g-t 2/3] lib/drm_fdinfo: Ensure buffer is null terminated

2022-05-27 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Ensure buffer is null terminated at the point where the read ended and not at the end of the whole buffer. Otherwise string parsing can stray into un-initialised memory. Signed-off-by: Tvrtko Ursulin --- lib/igt_drm_fdinfo.c | 8 lib/igt_drm_fdinfo.h | 4 ++-- 2