]> Savannah Git Hosting - gnulib.git/commit
xalloc: do not exceed PTRDIFF_MAX
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Dec 2016 17:59:21 +0000 (09:59 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Dec 2016 18:19:48 +0000 (10:19 -0800)
commitf8c6b7a2d1a28eca869008e56521ed5834d3bec1
tree802ef0fdfdaa4de4da839683e5ce1cda96d84d60
parentca495b0f87b2626156c8e51555fbd58c9129d3cc
xalloc: do not exceed PTRDIFF_MAX

* lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
xalloc_oversized check, since objects larger than PTRDIFF_MAX
bytes have pointer-subtraction problems.
ChangeLog
lib/xmalloc.c