]> Savannah Git Hosting - gnulib.git/commit
careadlinkat: avoid ptrdiff_t overflow
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Apr 2021 18:03:39 +0000 (11:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Apr 2021 18:10:48 +0000 (11:10 -0700)
commit87e2ea351c7e754cc3df8f6c9c519aa9fd1559e2
treec52d7d8965577422a31580abb0fdcd830b2d3b97
parent84b9d95e6a8f847da287c3bcd028b74a12e2f36d
careadlinkat: avoid ptrdiff_t overflow

* lib/careadlinkat.c: Include idx.h, minmax.h.
(readlink_stk): Avoid ptrdiff_t overflow in object allocation.
Since this module uses arbitrary allocators (including
stdlib_allocator), it cannot assume GNU malloc semantics.
* modules/careadlinkat (Depends-on): Add idx, minmax.
ChangeLog
lib/careadlinkat.c
modules/careadlinkat