nginx: Don't use nginx' custom memory allocator
Nginx uses its own memory allocator, tailored for speed and efficiency, and unfortunately, it doesn't have any security feature at all: no defenses against buffer overrun and use-after-free, unprotected metadata (with function pointers in them), no double/invalid-free detection, … Fortunately, there is a way to disabled it and use the default allocator instead, by compiling nginx with auto/configure --with-cc-opt='-DNGX_DEBUG_PALLOC=1'
.
Since musl's allocator is quite performant, there shouldn't™ be any noticeable (if at all) performance impact.