[openssl-dev] Question about valgrind error in DH in 1.0.2

Andy Polyakov appro at openssl.org
Mon May 18 22:13:29 UTC 2015


I'm looking into it and have a quick note.

> Could this be the issue your seeing? It was fixed in boringssl I think.
> https://boringssl.googlesource.com/boringssl/+/bf681a40d6142edfa44a27dc0d6e07e0c37865a4
> https://boringssl-review.googlesource.com/#/c/1393/

The reason for why that solution is not acceptable for OpenSSL is that
it implies that target is little-endian and can sustain unaligned
reference. It's appropriate to make such assumptions in
platform-specific code such as assembly, but not in general case. It
works in BoringSSL, because they limit themselves to such platforms.


More information about the openssl-dev mailing list