wolfSSL / wolfssl

The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3 and DTLS 1.3!
https://www.wolfssl.com
GNU General Public License v2.0
2.34k stars 831 forks source link

Hash_gen() dereferences a type-punned pointer #13

Closed aburks closed 9 years ago

aburks commented 9 years ago

Hash_gen() dereferences a type-punned pointer, which breaks strict-aliasing rules and causes -Wall and -Werror builds to fail.

https://github.com/wolfSSL/wolfssl/blob/master/wolfcrypt/src/random.c#L279

ejohnstown commented 9 years ago

Thanks for the catch!