Hello,

Got those kind of messages when compiling openssl 1.0.1:
cbc128.c:175:6: warning: dereferencing type-punned pointer will break 
strict-aliasing rules [-Wstrict-aliasing]
*(size_t *)(tmp.c+n) ^ *(size_t *)(ivec+n);
^
gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include 
-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H 
-Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall#
gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include 
-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H 
-Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall#
cts128.c: In function ‘CRYPTO_cts128_encrypt’:
cts128.c:114:3: warning: dereferencing type-punned pointer will break 
strict-aliasing rules [-Wstrict-aliasing]
*(size_t *)(tmp.c+n) = 0;
^
cts128.c: In function ‘CRYPTO_nistcts128_encrypt’:
cts128.c:150:3: warning: dereferencing type-punned pointer will break 
strict-aliasing rules [-Wstrict-aliasing]
*(size_t *)(tmp.c+n) = 0;
^
cts128.c: In function ‘CRYPTO_cts128_decrypt_block’:
cts128.c:181:3: warning: dereferencing type-punned pointer will break 
strict-aliasing rules [-Wstrict-aliasing]
*(size_t *)(tmp.c+n) = *(size_t *)(tmp.c+16+n);
^
cts128.c:181:3: warning: dereferencing type-punned pointer will break 
strict-aliasing rules [-Wstrict-aliasing]
cts128.c: In function ‘CRYPTO_nistcts128_decrypt_block’:

According to a few pages that's bad (ie. 
http://blog.qt.digia.com/blog/2011/06/10/type-punning-and-strict-aliasing/) 
maybe it should be fixed ?

Matthieu.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to