[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120917173149.4730024c@pyramind.ukuu.org.uk>
Date: Mon, 17 Sep 2012 17:31:49 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Ben Hutchings <bhutchings@...arflare.com>
Cc: <netdev@...r.kernel.org>
Subject: Re: [PATCH] ncm: allow for NULL terminations
On Mon, 17 Sep 2012 16:45:24 +0100
Ben Hutchings <bhutchings@...arflare.com> wrote:
> On Mon, 2012-09-17 at 11:58 +0100, Alan Cox wrote:
> > From: Alan Cox <alan@...ux.intel.com>
> >
> > The strings are passed to snprintf so must be null terminated. It seems the
> > copy length is incorrectly set.
>
> Please use strlcpy() instead. (I thought someone had already gone round
> the get_drvinfo implementations and fixed them to do that, actually.)
There are still plenty of them. I'm just noting they are one out. I'm
doing a first pass over a whole pile of stuff so if you'd prefer it in a
different form treat it as a note to the maintainer than their code is
buggy as I probably won't be back round to it for a couple of months
judging by the size of the audit pile I'm working down.
Alan
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists