From: David Brownell <david-b@pacbell.net>
To: Vasiliy Kulikov <segooon@gmail.com>,
Alan Stern <stern@rowland.harvard.edu>
Cc: kernel-janitors@vger.kernel.org,
Greg Kroah-Hartman <gregkh@suse.de>,
Oliver Neukum <oliver@neukum.org>,
Andi Kleen <ak@linux.intel.com>,
Chris Frey <cdfrey@foursquare.net>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: core: fix information leak to userland
Date: Sat, 6 Nov 2010 11:30:40 -0700 (PDT) [thread overview]
Message-ID: <502882.59497.qm@web180306.mail.gq1.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1011061419490.28403-100000@netrider.rowland.org>
--- On Sat, 11/6/10, Alan Stern <stern@rowland.harvard.edu> wrote:
> Are you sure that adding an initializer
> like this will zero out the
> padding bytes? It might be safer just to call
> memset.
ISTR the C standard says things get initted to
zero in this case too ... and that compilers will
as a rule use memset to do it. One could look
at the generated code to make sure of that.
There's certainly a fair amount of code I've seen
that uses runtime initializers like that, to zero
memory. I can't believe i's _all_ broken! ;)
- Dave
next prev parent reply other threads:[~2010-11-06 18:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-06 14:41 Vasiliy Kulikov
2010-11-06 18:21 ` Alan Stern
2010-11-06 18:30 ` David Brownell [this message]
2010-11-06 18:47 ` Alan Stern
2010-11-06 19:07 ` David Brownell
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=502882.59497.qm@web180306.mail.gq1.yahoo.com \
--to=david-b@pacbell.net \
--cc=ak@linux.intel.com \
--cc=cdfrey@foursquare.net \
--cc=gregkh@suse.de \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=oliver@neukum.org \
--cc=segooon@gmail.com \
--cc=stern@rowland.harvard.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®