Libnsgif 0.1.2 Stack Overflow / Out-Of-Bounds Read

Libnsgif version 0.1.2 suffers from stack overflow and out-of-bounds read vulnerabilities.