K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-12-08T15:10:48.718532Z K 7 svn:log V 435 patch(1): avoid line number overflows Introduce strtolinenum to properly check line numbers while parsing: no signs, no spaces, just digits, 0 <= x <= LONG_MAX Properly validate line ranges supplied in diff file to prevent overflows. Also fixes an out of boundary memory access because the resulting values are used as array indices. PR: 195436 Obtained from: OpenBSD (CVS pch.c rev 1.45, 1,46, common.h rev 1.28) MFC after: 1 week END