diff options
author | Michael Biebl <mbiebl@gmail.com> | 2016-07-27 05:32:37 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-07-26 23:32:37 -0400 |
commit | b6b609dbc202e5645fc58e87b8a7d46426ee4bb7 (patch) | |
tree | 6bb47c6c386bffcb1de3b12a24aaa335c0e4d3ca /factory | |
parent | 5a8ff0e61dd8094b2b5d0b35df2ca13b489e0dfa (diff) |
string-util: rework memory_erase() to not use GCC optimize attribute (#3812)
"#pragma GCC optimize" is merely a convenience to decorate multiple
functions with attribute optimize. And the manual has this to say about
this attribute:
This attribute should be used for debugging purposes only. It
is not suitable in production code.
Some versions of GCC also seem to have a problem with this pragma in
combination with LTO, resulting in ICEs.
So use a different approach (indirect the memset call via a volatile
function pointer) as implemented in openssl's crypto/mem_clr.c.
Closes: #3811
Diffstat (limited to 'factory')
0 files changed, 0 insertions, 0 deletions