1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Avoid valgrind warnings in mod_ssl random number generator

We intentionally add uninitialized stack memory. To avoid warnings,
make valgrind believe that the memory is defined.

Add configure option to enable valgrind support


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1442307 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Fritsch
2013-02-04 19:34:08 +00:00
parent 7db330784a
commit 8736e6a6d0
5 changed files with 43 additions and 0 deletions

View File

@@ -32,6 +32,11 @@
#include <assert.h>
#if HAVE_VALGRIND
#include <valgrind.h>
int ssl_running_on_valgrind = 0;
#endif
/*
* the table of configuration directives we provide
*/
@@ -347,6 +352,11 @@ static int ssl_hook_pre_config(apr_pool_t *pconf,
apr_pool_t *plog,
apr_pool_t *ptemp)
{
#if HAVE_VALGRIND
ssl_running_on_valgrind = RUNNING_ON_VALGRIND;
#endif
/* We must register the library in full, to ensure our configuration
* code can successfully test the SSL environment.
*/