This exploit write-up features #musl 1.1.24, whose oldmalloc (dlmalloc-like) was used to convert the exploitable bug in the application into an arbitrary write primitive.
musl 1.2.1 or later, with mallocng, would probably have rendered this non-exploitable or would have at least required non-malloc-based approaches to exploiting the initial application bug.
