summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Transforms
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-12-08 15:10:48 +0000
committerpfg <pfg@FreeBSD.org>2014-12-08 15:10:48 +0000
commitb65c58c802436598f59e45644da19df91a0da8cf (patch)
tree3c269ee9ccfa4cd3d101b13956526b5b9fe2c7ff /contrib/llvm/lib/Transforms
parent663f808a46cfb5d6fe438698225c4d545199c028 (diff)
downloadFreeBSD-src-b65c58c802436598f59e45644da19df91a0da8cf.zip
FreeBSD-src-b65c58c802436598f59e45644da19df91a0da8cf.tar.gz
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
Diffstat (limited to 'contrib/llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud