stack storage alignment problems with Sun compiler
Brought to you by:
alanh
Building Xvnc with the Solaris compiler (Sun Workshop
5.0) may get segfaults on some uses of unaligned
character buffers in local storage.
rfbClientConnFailed(), rfbProcessClientInitMessage(),
rfbSendSetColourMapEntries() all use local character
arrays to store structures.
rfbProcessClientInitMessage() actually segfaulted when
I built with -g flag, because the pointer was unaligned.
The buffers could be forcibly aligned by making them
unions with ints/CARD32s, or by declaring the buffers
as arrays of those types.
Logged In: YES
user_id=2372
If you have a patch - please attach here. Thanks.