summaryrefslogtreecommitdiff
path: root/lib/amdgpu/amd_command_submission.c
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2022-05-27 11:50:41 +0100
committerPetri Latvala <petri.latvala@intel.com>2022-05-30 16:19:50 +0300
commitae1864064454df483e3298e7b030fa3c7624fc18 (patch)
treea20307e4f6885a76085d4a69069b73083481faf4 /lib/amdgpu/amd_command_submission.c
parent1351a97b3dea0a7e984edb4f87ef1b19b311083d (diff)
lib/drm_fdinfo: Ensure buffer is null terminated
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 <tvrtko.ursulin@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/amdgpu/amd_command_submission.c')
0 files changed, 0 insertions, 0 deletions