xalloc: add missing integer overflow check
commitcff48ff751ca1ef8136695213a1a9df4f08dba38
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 26 Apr 2017 18:38:30 +0000 (26 11:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 26 Apr 2017 18:40:09 +0000 (26 11:40 -0700)
treec743a0c1a1b878e312f03f513e876d7cb6c2f47b
parent3c53173eda1fd3ae8e974deb494ecc1b355806bf
xalloc: add missing integer overflow check

* lib/xalloc.h (x2nrealloc): Also check for multiplication
overflow when P is null.
ChangeLog
lib/xalloc.h