Fix unaligned access

Andreas Schwab schwab@suse.de
Thu Jul 14 07:56:00 GMT 2005


Ulrich Drepper <drepper@redhat.com> writes:

> And again: when and where is this a problem?

See a few lines below:

  cmsg->cmsg_level = SOL_SOCKET;

Since cmsg is just a pointer to msg.msg_control, this needs to be properly
aligned.  Same for the next three lines.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libc-hacker mailing list