1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-14 14:01:48 +03:00
Files
gnulib/modules/xalloc-oversized
Paul Eggert f3b846699d xalloc-oversized: check for PTRDIFF_MAX too
This avoids undefined behavior when subtracting pointers to
objects containing more than PTRDIFF_MAX bytes.
* lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
Also return 1 if the result would exceed PTRDIFF_MAX>
* modules/xalloc-oversized (Depends-on):
Add stdint.
2016-12-15 10:19:48 -08:00

22 lines
215 B
Plaintext

Description:
Check for memory allocation overflow. Also see xalloc.
Files:
lib/xalloc-oversized.h
Depends-on:
stdint
configure.ac:
Makefile.am:
Include:
"xalloc-oversized.h"
License:
LGPLv2+
Maintainer:
all