4218. [bug] Potential null pointer dereference on out of memory if mmap is not supported. [RT #40777]