Apple Safari allows remote attackers to cause a denial of service (browser crash) via JavaScript that matches a regular expression against a long string, as demonstrated using /(.)*/.
http://www.securityfocus.com/archive/1/466043/100/0/threaded
http://www.securityfocus.com/archive/1/466017/100/0/threaded