From: Chong Yidong <cyd@gnu.org>
To: Jim Meyering <jim@meyering.net>
Cc: 11372@debbugs.gnu.org
Subject: bug#11372: [PATCH] avoid buffer overrun: NUL-terminate after strncpy
Date: Wed, 02 May 2012 18:10:56 +0800 [thread overview]
Message-ID: <87aa1qopu7.fsf@gnu.org> (raw)
In-Reply-To: <87vckjmsf6.fsf@rho.meyering.net> (Jim Meyering's message of "Sat, 28 Apr 2012 23:56:45 +0200")
Jim Meyering <jim@meyering.net> writes:
> strncpy is often misused.
> I would argue that nearly any use constitutes misuse.
>
> Here are a few fixes:
Thanks, committed to the emacs-24 branch.
prev parent reply other threads:[~2012-05-02 10:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-28 21:56 bug#11372: [PATCH] avoid buffer overrun: NUL-terminate after strncpy Jim Meyering
2012-05-02 10:10 ` Chong Yidong [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aa1qopu7.fsf@gnu.org \
--to=cyd@gnu.org \
--cc=11372@debbugs.gnu.org \
--cc=jim@meyering.net \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).