In ImageMagick 7.0.6-10, there is a heap-based buffer overflow in the TracePoint() function in MagickCore/draw.c.
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32583
https://www.debian.org/security/2017/dsa-4040
https://www.debian.org/security/2017/dsa-4032
https://usn.ubuntu.com/3681-1/