memcmp(...)
.
tests: Make sure we’re not passing an uninitialized array to memcmp(…) #532
pull practicalswift wants to merge 1 commits into bitcoin-core:master from practicalswift:uninitialized changing 1 files +2 −2-
practicalswift commented at 7:40 am on May 6, 2018: contributorMake sure we’re not passing an uninitialized array to
-
tests: Make sure we're not passing an uninitialized array to memcmp(...) 1eae9b1c69
-
gmaxwell commented at 4:38 am on February 21, 2019: contributorI think this change would reduce the sensitivity of valgrind. By initializing it ourselves we’ll suppress errors where the underlying code, which should have initialized it at least up to the length we’re using failed to do so.
-
gmaxwell commented at 0:07 am on May 23, 2019: contributorI still don’t see a reason to do this and there hasn’t been recent activity. I believe I understand the motivation, I think the disadvantage of masking errors that valgring/mem-santizer would find makes it not worth it. The valgrind component of the concern could be avoided by using valgrind macros to mark the array uninitilized but I’m aware of no comparable change for the sanitizers.
-
gmaxwell closed this on May 23, 2019
-
real-or-random cross-referenced this on May 23, 2019 from issue memcmp() may read unitiliazed memory in tests by real-or-random
-
practicalswift commented at 10:18 am on May 26, 2019: contributorFix in #627.
-
practicalswift cross-referenced this on May 26, 2019 from issue Guard memcmp in tests against mixed size inputs. by gmaxwell
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 03:15 UTC
This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 03:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me