diff options
author | fanquake <fanquake@gmail.com> | 2021-03-10 14:31:10 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-03-10 14:31:10 +0800 |
commit | 52f0be3a933225429b9b59b58de4fe54c2b20a02 (patch) | |
tree | 845655cb778ae48044cb06bc4f3d92e7d994cc0c /src/init.cpp | |
parent | bca5ee6f38f0ac89f0bb90d9e005b5bbd7c25b82 (diff) | |
download | bitcoin-52f0be3a933225429b9b59b58de4fe54c2b20a02.tar.xz |
compat: remove memcpy -> memmove backwards compatibility alias
In glib 2.13 memcpy was changed such that the way it copied bytes was reversed.
This caused all sorts of issues for existing software, which depended on the
existing behavior (when they should have been using memmove). See:
https://sourceware.org/bugzilla/show_bug.cgi?id=12518
https://bugzilla.redhat.com/show_bug.cgi?id=638477
Now that we require glibc 2.17+ (#17538), we should be well clear of having to
maintain our memcpy -> memmove aliasing, which was introduced in #4339.
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 8aa80eacca..dea3f42aa2 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -771,7 +771,7 @@ static bool InitSanityCheck() return InitError(Untranslated("Elliptic curve cryptography sanity check failure. Aborting.")); } - if (!glibc_sanity_test() || !glibcxx_sanity_test()) + if (!glibcxx_sanity_test()) return false; if (!Random_SanityCheck()) { |