diff options
author | pfg <pfg@FreeBSD.org> | 2013-05-20 03:15:25 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-05-20 03:15:25 +0000 |
commit | a054c02d31fb838c7253c97946fd2ec0d8a0861e (patch) | |
tree | b963ba6ea557123e5eb06e0f4d5f0afe40ff3c50 /tools/regression/lib/libc | |
parent | b3c31e12543c73dcf27340c2dd11d771db4b616a (diff) | |
download | FreeBSD-src-a054c02d31fb838c7253c97946fd2ec0d8a0861e.zip FreeBSD-src-a054c02d31fb838c7253c97946fd2ec0d8a0861e.tar.gz |
grep: change some int types.
Change several int variables to size_t, ssize_t, or ptrdiff_t.
This should fix the bug described in CVE-2012-5667 when an input
line is so long that its length cannot be stored in an int
variable.
This is based on NetBSD's revision which says:
This change to NetBSD's version of GNU grep 2.5.1 (licenced under
GPLv2) was made without direct reference to any code licenced
under GPLv3.
Obtained from: NetBSD
MFC after: 3 days
Diffstat (limited to 'tools/regression/lib/libc')
0 files changed, 0 insertions, 0 deletions