Fix zero-sized memory mapping