HEADS UP: OpenSSL problems after GCC 4.2 upgrade

Kris Kennaway kris at obsecurity.org
Sun May 20 18:43:25 UTC 2007

On Sun, May 20, 2007 at 07:45:18AM -0400, Colin Percival wrote:
> Alexander Kabaev wrote:
> > there were several reports of OpenSSL being broken when compiled with
> > GCC 4.2. It turns out OpenSSL uses function casting feature that was
> > aggressively de-supported by GCC 4.2 and GCC goes as far as inserting
> > invalid instructions ON PURPOSE to discourage the practice.
> > ...
> For the record (since I know several people were asking at BSDCan), this is
> a great example of why it makes sense to have libmd as well as libcrypto: A
> minimal hashing library which we maintain ourselves is far less likely to
> randomly break than a bloated^W more feature-complete library which is
> maintained outside of FreeBSD and occasionally imported onto a vendor branch.

Well that's kind of a straw man because it's not actually what I
suggested.  I was advocating compiling a minimal libmd that only
compiles (from openssl sources instead of our separate libmd sources)
the same subset of the code that we currently use in libmd, without
the additional bloat of libcrypto.

At least the last time I looked at openssl this was possible, and one
ends up with something very similar to our current libmd, plus
additional bug fixes.


More information about the freebsd-current mailing list