view modules/hash-tests @ 17780:4fbd46593c56

obstack: use size_t alignments and check for overflow * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1): * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk): * lib/obstack.h (struct obstack.alignment_mask): Use _OBSTACK_SIZE_T, not int, for alignments. * lib/obstack.c (_obstack_newchunk): Fail if the size calculation overflows, e.g., when adding the alignment.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 28 Oct 2014 23:58:42 -0700
parents 6c82b0eed023
children
line wrap: on
line source

Files:
tests/test-hash.c
tests/macros.h

Depends-on:
hash-pjw
inttostr
stdbool

configure.ac:

Makefile.am:
TESTS += test-hash
check_PROGRAMS += test-hash