]> granicus.if.org Git - apache/commit
Add wrappers for malloc, calloc, realloc that check for out of memory
authorStefan Fritsch <sf@apache.org>
Mon, 19 Sep 2011 16:25:42 +0000 (16:25 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 19 Sep 2011 16:25:42 +0000 (16:25 +0000)
commit01ed21af9d4a60239d12f2fb183a804ad46459ea
treedfcc795128d8fc349b4cd7ebe35b8f12dc73f01d
parente49dcebd0122db0792bc1a2075114064ae1fc31d
Add wrappers for malloc, calloc, realloc that check for out of memory
situations.  Use them in most places where malloc, and friends are used.
This results in clean error messages in an out of memory situation instead of
segfaulting or silently malfunctioning. In some places, it just allows to
remove some logging code.

PR 51568, PR 51569, PR 51571.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1172686 13f79535-47bb-0310-9956-ffa450edef68
18 files changed:
CHANGES
include/ap_config.h
include/ap_mmn.h
include/httpd.h
modules/cache/cache_cache.c
modules/cache/cache_hash.c
modules/cache/cache_pqueue.c
modules/cache/mod_socache_dbm.c
modules/examples/mod_case_filter_in.c
modules/proxy/proxy_util.c
modules/ssl/ssl_util.c
server/config.c
server/main.c
server/mpm/event/event.c
server/mpm/worker/worker.c
server/mpm_unix.c
server/scoreboard.c
server/util.c