[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#44654: dpkg: seg faults w/2.3.17; problem traced to sysinfo()

> Sender: owner-linux-kernel@vger.rutgers.edu
> From: Chris Lawrence <lawrencc@debian.org>
> This explicitly includes the alignment in the structure, which IMHO is
> a good thing.  Yes, I know _f[] looks ugly.  Oh, well.  (I assume
> unsigned short is usually 32 bits on a 64-bit platform, so the
> alignment will be fixed here... otherwise, damned if I know how to
> portably fix the problem.)
Poor assumption:

On 64 bit systems, unsigned short is usually 16 bits. Unsigned int
is 32 bits; unsigned long is 64 bits.
				- Jim

Reply to: