Re: [PATCH v4] video: fbdev: via: refactor strcpy and viafb_name

Helge Deller <[email protected]>
Newsgroups org.kernel.vger.linux-fbdev,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On 8/18/26 13:17, Ajith P V wrote:
> Eliminate the single-use file-scope variable `viafb_name` and pass the
> "Via" string literal directly to strcpy().
> 
> Since "Via" is a literal constant, the compiler safely executes
> compile-time bounds checking during fortify verification. This satisfies
> the security initiative requirements while minimizing code complexity.
> 
> Signed-off-by: Ajith P V <[email protected]>
> ...
>   drivers/video/fbdev/via/viafbdev.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
applied.

Thanks!
Helge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.