Re: [Intel-gfx] [PATCH] drm/i915: zero fill vma name buffer

2021-09-16 Thread Tim Gardner
On 9/16/21 4:43 AM, Jani Nikula wrote: On Thu, 16 Sep 2021, Tvrtko Ursulin wrote: On 15/09/2021 20:23, Tim Gardner wrote: In capture_vma() Coverity complains of a possible buffer overrun. Even though this is a static function where all call sites can be checked, limiting the copy length cou

Re: [Intel-gfx] [PATCH] drm/i915: zero fill vma name buffer

2021-09-16 Thread Jani Nikula
On Thu, 16 Sep 2021, Tvrtko Ursulin wrote: > On 15/09/2021 20:23, Tim Gardner wrote: >> In capture_vma() Coverity complains of a possible buffer overrun. Even >> though this is a static function where all call sites can be checked, >> limiting the copy length could save some future grief. >> >> C

Re: [Intel-gfx] [PATCH] drm/i915: zero fill vma name buffer

2021-09-16 Thread Tvrtko Ursulin
On 15/09/2021 20:23, Tim Gardner wrote: In capture_vma() Coverity complains of a possible buffer overrun. Even though this is a static function where all call sites can be checked, limiting the copy length could save some future grief. CID 93300 (#1 of 1): Copy into fixed size buffer (STRING_O

[PATCH] drm/i915: zero fill vma name buffer

2021-09-15 Thread Tim Gardner
In capture_vma() Coverity complains of a possible buffer overrun. Even though this is a static function where all call sites can be checked, limiting the copy length could save some future grief. CID 93300 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW) 4. fixed_size_dest: You might overr