aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorAdam Langley <[email protected]>2017-08-29 22:26:12 -0700
committerMark Friedenbach <[email protected]>2017-09-06 13:46:11 -0700
commit1444c2e7d0a243690b960c1fefe5f36bf5ca7e54 (patch)
tree394bd270b1a3fd0d34693f0cdcaeccdd8732b07d /src/httpserver.cpp
parentMerge #11117: Prepare for non-Base58 addresses (diff)
downloaddiscoin-1444c2e7d0a243690b960c1fefe5f36bf5ca7e54.tar.xz
discoin-1444c2e7d0a243690b960c1fefe5f36bf5ca7e54.zip
Switch memory_cleanse implementation to BoringSSL's to ensure memory clearing even with link-time optimization.
The implementation we currently use from OpenSSL prevents the compiler from optimizing away clensing operations on blocks of memory that are about to be released, but this protection is not extended to link-time optimization. This commit copies the solution cooked up by Google compiler engineers which uses inline assembly directives to instruct the compiler not to optimize out the call under any circumstances. As the code is in-lined, this has the added advantage of removing one more OpenSSL dependency. Regarding license compatibility, Google's contributions to BoringSSL library, including this code, is made available under the ISC license, which is MIT compatible. BoringSSL git commit: ad1907fe73334d6c696c8539646c21b11178f20f
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions