@Hinidu can I leave this for another PR? I can create an entry-level explaining how and when to use `xmallocz` and replace many occurrences of `xmalloc(len + 1)`.