Improve InternalNioInputBuffer#parseHeaders() Move the code and s/end/pos/ It is backport of r1350294 from trunk (r1350301 in Tomcat 7). This fixed CVE-2012-2733 Apache Tomcat Denial of Service