]> Savannah Git Hosting - gnulib.git/commit
malloca: avoid ptrdiff_t overflow
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Apr 2021 18:07:18 +0000 (11:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Apr 2021 18:10:49 +0000 (11:10 -0700)
commit7e605302f7ce70184af6a21de546da8b604f9c76
tree77a72e29877ec98fa0b34f8a9765298e46bfa082
parent87e2ea351c7e754cc3df8f6c9c519aa9fd1559e2
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.
ChangeLog
lib/malloca.c
modules/malloca