Summary: | generated suppressions based on the origin of uninitialized memory | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Joost VandeVondele <Joost.VandeVondele> |
Component: | general | Assignee: | Julian Seward <jseward> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | bugzilla, csoler, ivosh, jacek.tomaka, retrosharephenom |
Priority: | NOR | ||
Version First Reported In: | 3.7 SVN | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Joost VandeVondele
2011-08-29 06:49:18 UTC
+1 for this. I am trying to analyze app which uses OpenSSL, and have to silence some messages about uninitialized memory. BTW, -DPURIFY for OpenSSL did not solve my problem completely - there is still one place left there. +1000: We need it. Like: { libcrypto[Memcheck:Cond] Memcheck:Cond ... obj:/usr/lib/libcrypto.so.1.0.0 ... } Should mark all memory allocated by or through this library as initialized. Same report here BR#255987 https://bugs.kde.org/show_bug.cgi?id=255987 +1. This would save the life of anyone who's using libcrypto, which happens to generate so much warning about uninitialised memory that is makes valgrind unusable. Of course for libcrypto from OpenSSL the ultimate fix would be to fix it so it does not base its processing on uninitialized memory. I understand at least one part of libcrypto takes some uninitialized memory as a source to produce entropy - this would need to be annotated with VALGRIND_MAKE_MEM_DEFINED or VALGRIND_MAKE_MEM_DEFINED_IF_ADDRESSABLE, though. Anyway, patches are welcome! +1 Just ran into it while using boost library: boost/boost/uuid/seed_rng.hpp:167 166 // *p is intentionally left uninitialized 167 unsigned int * p = new unsigned int; |