]> Savannah Git Hosting - gnulib.git/commit
xalloc: simplify integer overflow test
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 Apr 2021 17:28:20 +0000 (10:28 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 Apr 2021 17:29:19 +0000 (10:29 -0700)
commita4f1d2cae56a495799f4da7e414105ad536b3d01
treeb87a989f124bbad559bf84ede0951413bffe46ec
parent7e90795b4061e4d023c8ab4937d988dbbdbf9d15
xalloc: simplify integer overflow test

* lib/xalloc.h (x2nrealloc): Simplify integer overflow detection.
This is easier to maintain, and (unlike the old code) exact.
ChangeLog
lib/xalloc.h