Integer overflow in Terminal in Apple Mac OS X 10.5 before 10.5.7 allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption and application crash) via a crafted size value in a CSI[4 xterm resize escape sequence that triggers a heap-based buffer overflow.
https://exchange.xforce.ibmcloud.com/vulnerabilities/50982
http://www.securityfocus.com/bid/35182
http://www.securityfocus.com/archive/1/504031/100/0/threaded
http://support.apple.com/kb/HT3549