Project

General

Profile

[Solved] patch: assert memory allocation results

Added by volkere almost 9 years ago

hi,

i tried posting this to the mailing list the other day but it seems that list is not active (?)

a while back colleagues encountered a problem with lighttpd 1.4.34 (i believe), where it wouldn't server any HTTPS connections any more and from hearsay there was suspicion for the reason to be a failed (m)alloc somewhere. it wasn't easily reproducible but i figured as a first line of defence it would be a very cheap thing to assert on all memory allocations, to detect that kind of problem.

the patch was rebased against the tip of the 1.4.x branch and i hope it might be useful to someone (or applied to the repo...)

signed-off-by: volker.eckert<TA>gmx.net

regards,
volker


    (1-1/1)