Re: PATCH: fix 2 byte data leak due to padding
From: Alan Cox (alan_at_lxorguk.ukuu.org.uk)
Date: 07/28/03
- Previous message: Denis Vlasenko: "Re: [ANNC] linld 0.96 is available"
- In reply to: Lou Langholtz: "Re: PATCH: fix 2 byte data leak due to padding"
- Next in thread: Wichert Akkerman: "Re: PATCH: fix 2 byte data leak due to padding"
- Reply: Wichert Akkerman: "Re: PATCH: fix 2 byte data leak due to padding"
- Reply: Andrew Morton: "Re: PATCH: fix 2 byte data leak due to padding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Lou Langholtz <ldl@aros.net> Date: 28 Jul 2003 12:32:50 +0100
On Llu, 2003-07-28 at 04:49, Lou Langholtz wrote:
> >+ memset(&tmp, 0, sizeof(struct __old_kernel_stat));
> >
> Wouldn't it be more clear (better) to use sizeof(tmp) here rather than
> sizeof(struct _old_kernel_stat)?
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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Denis Vlasenko: "Re: [ANNC] linld 0.96 is available"
- In reply to: Lou Langholtz: "Re: PATCH: fix 2 byte data leak due to padding"
- Next in thread: Wichert Akkerman: "Re: PATCH: fix 2 byte data leak due to padding"
- Reply: Wichert Akkerman: "Re: PATCH: fix 2 byte data leak due to padding"
- Reply: Andrew Morton: "Re: PATCH: fix 2 byte data leak due to padding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|