]> git.tue.mpg.de Git - paraslash.git/commit
string: Introduce arr_alloc().
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 27 Oct 2021 18:40:04 +0000 (20:40 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Jul 2022 17:22:09 +0000 (19:22 +0200)
commit27c08870ba172782f6406045007b6ff32a4f7329
treeafe512a81df91ee14d27caaa4e69e58e10b4c357
parentf484411f1a48386975f55d1273750ca3c926aa9a
string: Introduce arr_alloc().

Change all callers of alloc() which pass a product of two integers as
the allocation size to call the new function instead. This function
aborts if the multiplication overflows. With arr_alloc() in place,
alloc() reduces to a trivial wrapper which calls new arr_alloc()
with the first argument equal to one.
27 files changed:
aac_afh.c
aacdec_filter.c
aft.c
audiod.c
client.c
command.c
fec.c
fecdec_filter.c
filter.c
flacdec_filter.c
imdct.c
interactive.c
mp3_afh.c
mp3dec_filter.c
ogg_afh_common.c
opusdec_filter.c
para.h
play.c
resample_filter.c
spxdec_filter.c
string.c
string.h
sync_filter.c
vss.c
wma_afh.c
wmadec_filter.c
yy/mp.y