Fixed arbitrary remote code execution vulnerability reported by Stefan Esser, CVE-2012-0830.