HomePhabricator

Remove memcpy compatibility for glibc < 2.14

Description

Remove memcpy compatibility for glibc < 2.14

Summary:
This makes memcpy having undefined behavior when memory overlaps,
while memmove (previously aliased) used to be safer in this regard.
Hopefully UBSAN will catch this kind of issues.

Depends on D6342.

Test Plan:

ninja all check-all
make check

Run the Gitian builds.

Run the tests with UBSAN.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D6352

Details

Provenance
FabienAuthored on Jun 3 2020, 16:01
FabienPushed on Jun 4 2020, 09:15
Reviewer
Restricted Project
Differential Revision
D6352: Remove memcpy compatibility for glibc < 2.14
Parents
rABC47887f4b096e: test: Create new test library
Branches
Unknown
Tags
Unknown