mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-14 14:01:48 +03:00
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.
22 lines
215 B
Plaintext
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
|