[Bug c/90882] Possible security breach through undefined behavior when treating boolean as int

2019-06-13 Thread kevin.dewald at ieee dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90882 --- Comment #2 from Kevin Dewald --- Created attachment 46489 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46489&action=edit objdump of main section

[Bug c/90882] Possible security breach through undefined behavior when treating boolean as int

2019-06-13 Thread kevin.dewald at ieee dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90882 --- Comment #1 from Kevin Dewald --- When compiling and running the attached code using GCC 7.4.0, the output prints both 'true' and 'false'. When testing if the variable 'boolean' is false, an XOR 1,EAX instruction is executed on that memory po

[Bug c/90882] New: Possible security breach through undefined behavior when treating boolean as int

2019-06-13 Thread kevin.dewald at ieee dot org
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: kevin.dewald at ieee dot org Target Milestone: --- Created attachment 46488 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46488&action=edit Example C code