Re: [Intel-gfx] [PATCH v2] drm/i915: use strscpy() to avoid buffer overrun

2021-09-17 Thread Tvrtko Ursulin
On 16/09/2021 13:26, 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

[Intel-gfx] [PATCH v2] drm/i915: use strscpy() to avoid buffer overrun

2021-09-16 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