]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r315162:
authorpfg <pfg@FreeBSD.org>
Fri, 7 Apr 2017 16:08:04 +0000 (16:08 +0000)
committerpfg <pfg@FreeBSD.org>
Fri, 7 Apr 2017 16:08:04 +0000 (16:08 +0000)
commitfeaeb09c7553a3cb3242f6be7b39a5f4b4d5a3e7
tree9779b1eeb4a9a1f1c6fccb20ee1fb04a426efb9d
parent7317fc9c0522c902a4a0a67b17c5c5d25d04bff9
MFC r315162:
libc: provide some bounds-checking through reallocarray(3).

reallocarray(3) is a non portable extension that originated in OpenBSD.
Given that it is already in FreeBSD's libc it is useful for the cases
where reallocation involves a multiplication.
12 files changed:
lib/libc/gen/glob.c
lib/libc/gen/scandir.c
lib/libc/gen/setmode.c
lib/libc/gen/wordexp.c
lib/libc/iconv/citrus_esdb.c
lib/libc/net/nsdispatch.c
lib/libc/regex/regcomp.c
lib/libc/rpc/getnetconfig.c
lib/libc/stdio/open_wmemstream.c
lib/libc/stdio/printf-pos.c
lib/libc/stdio/ungetc.c
lib/libc/stdlib/getenv.c