"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/t-secmem.c" between
libgcrypt-1.9.1.tar.bz2 and libgcrypt-1.9.2.tar.bz2

About: Libgcrypt is a general purpose library of cryptographic building blocks (originally based on GnuPG code).

t-secmem.c  (libgcrypt-1.9.1.tar.bz2):t-secmem.c  (libgcrypt-1.9.2.tar.bz2)
skipping to change at line 119 skipping to change at line 119
return 0; return 0;
} }
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
int last_argc = -1; int last_argc = -1;
long int pgsize_val = -1; long int pgsize_val = -1;
size_t pgsize; size_t pgsize;
if (getenv ("GCRYPT_IN_ASAN_TEST"))
{
/* 'mlock' is not available when build with address sanitizer,
* so skip test. */
fputs ("Note: " PGM " skipped because running with ASAN.\n", stdout);
return 0;
}
#if HAVE_MMAP #if HAVE_MMAP
# if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE) # if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
pgsize_val = sysconf (_SC_PAGESIZE); pgsize_val = sysconf (_SC_PAGESIZE);
# elif defined(HAVE_GETPAGESIZE) # elif defined(HAVE_GETPAGESIZE)
pgsize_val = getpagesize (); pgsize_val = getpagesize ();
# endif # endif
#endif #endif
pgsize = (pgsize_val > 0)? pgsize_val : DEFAULT_PAGE_SIZE; pgsize = (pgsize_val > 0)? pgsize_val : DEFAULT_PAGE_SIZE;
pool_size = (MINIMUM_POOL_SIZE + pgsize - 1) & ~(pgsize - 1); pool_size = (MINIMUM_POOL_SIZE + pgsize - 1) & ~(pgsize - 1);
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)