[openssl-dev] [openssl.org #4474] Overflow optimizations being taken by GCC

2016-06-02 Thread Stephen Henson via RT
It looks like a lot of these warnings are bogus. For example ct_validation is only ever set to 0 or 1 yet it throws out a warning with if(ct_vlidation) in one place while not warning about a similar expression just above it. I tidied up ocsp_prn.c which avoided the warning in that file: though

[openssl-dev] [openssl.org #4474] Overflow optimizations being taken by GCC

2016-03-24 Thread noloa...@gmail.com via RT
$ ./config -Wstrict-overflow ... $ make ... crypto/asn1/a_strex.c: In function ‘do_print_ex.constprop.3’: crypto/asn1/a_strex.c:385:12: warning: assuming signed overflow does not occur when simplifying conditional to constant [-Wstrict-overflow] if (len < 0) ^