CWE 121 vulnerability

It was identified that the use of a stack-based buffer for building the selector made Mantle potentially vulnerable to a stack-based buffer overflow.

Changing the implementation to make use of a heap-based, dynamically allocated buffer attempts to avoid this vulnerability.