------- Comment #19 from pinskia at gcc dot gnu dot org 2007-01-17 17:12 ------- Again your code is broken to the standard and the comp.lang.c faq mentions a way to not dependent on the undefined code so this again is not really a bug.
The question about security is what do you trust, the inputs or the outputs? Really what you are saying with your current code, you trust the inputs but not the outputs. What the code given in the comp.lang.c faq does is not trust the inputs. I am sorry that you wrote broken code to begin with but given you are writting C+signedintegeroverflowaswrapping code and not C (and GCC is a C compiler), GCC breaks your code. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30475