[stunnel-users] [PATCH] Fix undefined aliasing in libwrap.c

Miloslav Trmac mitr at redhat.com
Thu Apr 30 14:19:12 CEST 2009


Hello,
The attached patch changes the code not to access a part of a char[...] array using an int *, which is undefined in ISO C.  Using memcpy() is safe.

I would have posted it on in the BTS, but it doesn't allow me even to log in...

Thank you,
    Mirek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stunnel-4.27-aliasing.patch
Type: application/octet-stream
Size: 771 bytes
Desc: not available
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20090430/d4bde870/attachment.obj>


More information about the stunnel-users mailing list