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

Michal Trojnara Michal.Trojnara at mobi-com.net
Sat May 2 14:44:02 CEST 2009


Miloslav Trmac wrote:
> The attached patch changes the code not to access a part of a  
> char[...] array using an int *, which is undefined in ISO C.

Casting pointers is undefined?  On some architectures it could make  
sense due to data alignment issues, but I really didn't know that.   
Where did you find it?

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

I guess there was some problem due to DBMS upgrade.  I'll work on  
that.  Thx 4 info.

Best regards,
	Mike



More information about the stunnel-users mailing list