]> git.tuebingen.mpg.de Git - paraslash.git/commit
Merge topic branch t/overflow into master
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 3 Oct 2022 15:59:56 +0000 (17:59 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 3 Oct 2022 16:01:20 +0000 (18:01 +0200)
commit563b56a493d6a2bdcdebafadd907954dbe1de8a8
tree19c62c5efda73d04e9491541d5d0dcc8af9d274d
parent82aedc35a6cdf2c7e0d27fc16f75529722505dac
parent9240a6e9119ac60c27cc3ba10a31a80976d65daf
Merge topic branch t/overflow into master

This series implements a new memory allocation API which checks
for overflows. The first part of the series just renames the main
allocation functions. Later patches in the series implement allocators
which take two size_t arguments (like calloc(3)) and check whether the
multiplication overflows by employing the __builtin_mul_overflow()
primitive supported by gcc and clang. This requires us to bump the
lowest supported gcc and clang version.

* refs/heads/t/overflow:
  build: Compile with -ftrapv.
  string: Introduce arr_zalloc().
  string: Introduce arr_alloc().
  string: Introduce arr_realloc() and check for integer overflow.
  string: Rename para_calloc() -> zalloc().
  string: Rename para_malloc() -> alloc().
  string: Overhaul para_strdup().
55 files changed:
Makefile.real
NEWS.md
aac_afh.c
aacdec_filter.c
afh_recv.c
afs.c
alsa_write.c
amp_filter.c
ao_write.c
audioc.c
audiod.c
audiod_command.c
buffer_tree.c
check_wav.c
client.c
client_common.c
command.c
compress_filter.c
dccp_recv.c
dccp_send.c
fd.c
fecdec_filter.c
file_write.c
filter.c
flacdec_filter.c
grab_client.c
gui.c
http_recv.c
http_send.c
interactive.c
mp3dec_filter.c
mp4.c
net.c
oggdec_filter.c
opusdec_filter.c
oss_write.c
para.h
play.c
prebuffer_filter.c
recv_common.c
resample_filter.c
sched.c
send_common.c
server.c
signal.c
spxdec_filter.c
string.c
string.h
sync_filter.c
udp_send.c
vss.c
wav_filter.c
wmadec_filter.c
write.c
write_common.c