chiark / gitweb /
util: add realloc_multiply() helper
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 13 Jun 2014 16:43:22 +0000 (18:43 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 16 Jun 2014 13:23:06 +0000 (15:23 +0200)
commit9489490a693ec5d1e3b49eecedb0ca5511568665
tree9985e44026281d04a90a2c865947844119ca68d9
parent368504f485d09b9fd48b7538e71981f648eb32bb
util: add realloc_multiply() helper

This is similar to malloc_multiply() and friends. It is realloc() with a
multiplication-overflow check.
src/shared/util.h