]> git.tuebingen.mpg.de Git - paraslash.git/commit - web/manual.md
string: Introduce arr_realloc() and check for integer overflow.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 27 Oct 2021 16:11:41 +0000 (18:11 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Jul 2022 17:22:09 +0000 (19:22 +0200)
commitf484411f1a48386975f55d1273750ca3c926aa9a
tree226652a07537041347f5d07b008cb208ff9adfaa
parent26a032fffa6c6e6f092ed3d14c2b5f08e5c736d6
string: Introduce arr_realloc() and check for integer overflow.

Use __builtin_mul_overflow() for the check. This builtin was introduced
in gcc-5, so we need to bump the lowest supported version.

Re-implement para_realloc() as a trivial wrapper for arr_realloc()
to simplify and to avoid duplicating the size check.
12 files changed:
aft.c
audiod.c
bitstream.c
client.c
flac_afh.c
interactive.c
mood.c
mp3_afh.c
ogg_afh_common.c
string.c
string.h
web/manual.md