diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-04-21 11:07:18 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-04-21 11:10:49 -0700 |
commit | 7e605302f7ce70184af6a21de546da8b604f9c76 (patch) | |
tree | 77a72e29877ec98fa0b34f8a9765298e46bfa082 /modules | |
parent | 87e2ea351c7e754cc3df8f6c9c519aa9fd1559e2 (diff) | |
download | gnulib-7e605302f7ce70184af6a21de546da8b604f9c76.tar.gz |
malloca: avoid ptrdiff_t overflow
* lib/malloca.c: Include idx.h, intprops.h.
(mmalloca): Check for ptrdiff_t overflow. Since this module uses
_GL_USE_STDLIB_ALLOC, it cannot assume GNU malloc semantics.
* modules/malloca (Depends-on): Add idx, intprops.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/malloca | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/malloca b/modules/malloca index 9b7a3dbd25..346d33251a 100644 --- a/modules/malloca +++ b/modules/malloca @@ -9,6 +9,8 @@ m4/eealloc.m4 Depends-on: alloca-opt +idx +intprops stdint verify xalloc-oversized |