summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vwprintf.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-06-28 19:45:15 +0000
committermarcel <marcel@FreeBSD.org>2003-06-28 19:45:15 +0000
commitabc3ed480d1ab26837d03ab2d84967f33cc7d421 (patch)
tree48278e3806fb8ad64cdf7a23ab1dea7517c1baf6 /lib/libc/stdio/vwprintf.c
parentea0a6b417ac906ddafc1c9e26c790ec44c7eafea (diff)
downloadFreeBSD-src-abc3ed480d1ab26837d03ab2d84967f33cc7d421.zip
FreeBSD-src-abc3ed480d1ab26837d03ab2d84967f33cc7d421.tar.gz
Don't use fuword() and suword() on struct members of type int. This
happens to work on 32-bit platforms as sizeof(long)=sizeof(int), but wrecks all kinds of havoc (garbage reads, corrupting writes and misaligned loads/stores) on 64-bit architectures. The fix for now is to use fuword32() and suword32() and change the type of the applicable int fields to int32. This is to make it explicit that we depend on these fields being 32-bit. We may want to revisit this later. Reviewed by: deischen
Diffstat (limited to 'lib/libc/stdio/vwprintf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud