A heap buffer overflow vulnerability may occur in WebAssembly when "shrinkElements" is called followed by garbage collection on memory that is now uninitialized. This results in a potentially exploitable crash. This vulnerability affects Firefox < 58.
https://www.mozilla.org/security/advisories/mfsa2018-02/
https://usn.ubuntu.com/3544-1/
https://bugzilla.mozilla.org/show_bug.cgi?id=1415883