Some memory allocation improvements
authorWayne Davison <wayne@opencoder.net>
Fri, 26 Jun 2020 02:59:19 +0000 (19:59 -0700)
committerWayne Davison <wayne@opencoder.net>
Fri, 26 Jun 2020 03:54:21 +0000 (20:54 -0700)
commit11eb67eec9b4d990ae4df680cf7db77dad1b8630
tree977f60274b7784ad12854bbe575503bae46c3e6c
parent39a083b16b6d229f32078569ea8bd2c4bb29a44b
Some memory allocation improvements

 - All the memory-allocation macros now auto-check for failure and exit
   with a failure message that incudes the caller's file and lineno
   info.  This includes strdup().

 - Added the `--max-alloc=SIZE` option to be able to override the memory
   allocator's sanity-check limit.  It defaults to 1G (as before).
   Fixes bugzilla bug 12769.
31 files changed:
NEWS.md
access.c
acls.c
authenticate.c
checksum.c
clientserver.c
compat.c
exclude.c
fileio.c
flist.c
generator.c
getgroups.c
hashtable.c
hlink.c
ifuncs.h
io.c
loadparm.c
main.c
match.c
options.c
params.c
rsync.1.md
rsync.h
sender.c
socket.c
t_stub.c
token.c
uidlist.c
util.c
util2.c
xattrs.c