This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/69976] Zero the local stack on function exit


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69976

--- Comment #9 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Created attachment 37972
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37972&action=edit
Crude test case

In case it's helpful, here's a crude attempt at a black-box test case for this:
read a secret into an auto buffer in one function, and then see if it's
readable in another function.

Currently fails with exit code 2 on trunk (with warning âsecurity_sensitiveâ
attribute directive ignored [-Wattributes])

(Naturally we'd want white-box testing also, to verify that the generated code
contains zeroing code).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]