linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wichert Akkerman <wichert@wiggy.net>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: PATCH: fix 2 byte data leak due to padding
Date: Mon, 28 Jul 2003 13:44:24 +0200	[thread overview]
Message-ID: <20030728114424.GB5453@wiggy.net> (raw)
In-Reply-To: <1059391969.15438.16.camel@dhcp22.swansea.linux.org.uk>

Previously Alan Cox wrote:
> sizeof(variable) can be suprising some times so I always use sizeof(type) out
> of habit. (Think sizeof(x) when X later becomes a pointer)

when X becomes a pointer and you use sizeof(type of what X points to)
you'll be in trouble anyway.

Wichert.

-- 
Wichert Akkerman <wichert@wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


  reply	other threads:[~2003-07-28 11:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-27 20:19 Alan Cox
2003-07-28  3:49 ` Lou Langholtz
2003-07-28 11:32   ` Alan Cox
2003-07-28 11:44     ` Wichert Akkerman [this message]
2003-07-28 19:54     ` Andrew Morton

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=20030728114424.GB5453@wiggy.net \
    --to=wichert@wiggy.net \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: PATCH: fix 2 byte data leak due to padding' \
    /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

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 NNTP newsgroup(s).