From: "H. Peter Anvin" <hpa@zytor.com>
To: Roel Kluin <12o3l@tiscali.nl>
Cc: elf@buici.com,
Linux-arm <linux-arm-kernel@lists.arm.linux.org.uk>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] locomo.c: convert strncpy(x, y, sizeof(x)) to strlcpy
Date: Thu, 06 Mar 2008 13:44:59 -0800 [thread overview]
Message-ID: <47D065DB.7070708@zytor.com> (raw)
In-Reply-To: <47CFECCB.7050909@tiscali.nl>
Roel Kluin wrote:
> This patch was not yet tested. Please confirm it's right.
> ---
> strncpy does not append '\0' if the length of the source string equals
> the size parameter, strlcpy does.
>
Are you sure it's safe to not zero out the contents of the buffer (no
information leak)?
-hpa
next prev parent reply other threads:[~2008-03-06 21:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 13:08 [PATCH] locomo.c: convert strncpy(x, y, sizeof(x)) to strlcpy Roel Kluin
2008-03-06 21:44 ` H. Peter Anvin [this message]
2008-03-06 23:35 ` Roel Kluin
2008-03-07 1:51 ` David Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47D065DB.7070708@zytor.com \
--to=hpa@zytor.com \
--cc=12o3l@tiscali.nl \
--cc=elf@buici.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.