openssl / openssl

TLS/SSL and crypto library

Home Page:https://www.openssl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iteration 19 evokes undefined behaviour [gentoo]

teletrail opened this issue · comments

commented

hallo. I am running gentoo compiling openssl from within the package management system - it gave me a wwarning so I thought I should report to you all.

* QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * ../openssl-3.0.13/crypto/bn/rsaz_exp_x2.c:500:16: warning: iteration 19 invokes undefined behavior [-Waggressive-loop-optimizations]

otherwise up-to-date system, let me know if there are changes I ought to make.

thanks!

I'm trying a build that's configured with -Waggressive-loop-optimizations, just to see if I can reproduce it that way. If that fails, I will need to know exactly how gentoo configures OpenSSL, i.e. if your log has a command ./config ... or ./Configure ..., it would be wonderful if you could share it.

Update: my first attempt at reproducing failed, i.e. I got a clean build

looks like a duplicate of #21088

So this was fixed in #23898, not sure which branches all got that.

So this was fixed in #23898, not sure which branches all got that.

IMO just the master branch. Also it is a compiler bug/false positive warning.

So we have a couple of choices:

  • close this as a duplicate of #21088, with reference that it's a compiler bug/false positive
  • backport/cherry-pick #23898 to older release branches

I could go either way.

I would be OK with the backport.