lkml.org 
[lkml]   [2023]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] staging/wlan-ng: remove strcpy() use in favor of strscpy()
    On Thu, Oct 12, 2023 at 01:03:40PM +0300, Dan Carpenter wrote:
    > The simplest approach is to do a:
    >
    > git grep strscpy | grep " - 1"
    >
    > But the better approach would be to write a Smatch or Coverity check to
    > prevent these in the future.

    I meant Coccinelle not Coverity. Duh...

    Also btw, sometimes we want to keep the "don't necessarily terminate the
    string behavior". That's rare and ugly, but it does exist.

    regards,
    dan carpenter

    \
     
     \ /
      Last update: 2023-10-12 12:15    [W:3.528 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site