]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Merge branch 'bug29145_029' into maint-0.4.0
authorNick Mathewson <nickm@torproject.org>
Tue, 19 Feb 2019 16:49:20 +0000 (11:49 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 19 Feb 2019 16:49:20 +0000 (11:49 -0500)
1  2 
src/test/test-memwipe.c

index 15e6a03d8aa3bdd6c2b8cddaf9ef5b34978ba8b3,c650b99c85ff1f29b1ad648b8ecdb25a7b7f6ab0..43754ed1c278e3b61bbbe822c40527a330abf49a
@@@ -44,10 -36,11 +44,11 @@@ const char *s = NULL
      sum += (unsigned char)buf[i];                                       \
    }
  
 -#ifdef __OpenBSD__
 +#ifdef OpenBSD
  /* Disable some of OpenBSD's malloc protections for this test. This helps
   * us do bad things, such as access freed buffers, without crashing. */
- const char *malloc_options="sufjj";
+ extern const char *malloc_options;
+ const char *malloc_options = "sufjj";
  #endif
  
  static unsigned