lkml.org 
[lkml]   [2009]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: strncat() misuse (was: Re: dm_attr_{name,uuid}_show buffer overflow? (was: Re: linux-next: Tree for January 5))
    On Tue, Jan 06, 2009 at 01:27:59AM +0000, Alasdair G Kergon wrote:
    > On Mon, Jan 05, 2009 at 11:18:38PM +0100, Geert Uytterhoeven wrote:
    > > On Mon, 5 Jan 2009, Geert Uytterhoeven wrote:
    > > > On Mon, 5 Jan 2009, Stephen Rothwell wrote:
    > > > | strncat(buf, "\n", DM_NAME_LEN);
    > > > | return strnlen(buf, DM_NAME_LEN);

    I've edited the patch to use strcat and strlen.

    http://git.kernel.org/?p=linux/kernel/git/agk/linux-2.6-dm.git;a=commit;h=911950f88bfd8a6747a1c6da5c5410641845bc64

    Alasdair
    --
    agk@redhat.com


    \
     
     \ /
      Last update: 2009-01-06 03:21    [W:0.021 / U:29.124 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site