freebsd-nq/lib/libc
Enji Cooper c1755e5189 Make sure fmemopen succeeds in :test_append_binary_pos before calling ftell
on the FILE object

This fixes potential null pointer dereferences on failure

CID: 1254952
MFC after: 2 weeks
Reported by: Coverity
Sponsored by: EMC / Isilon Storage Division
2016-04-19 23:59:10 +00:00
..
aarch64 arm64 libc: hide .cerror, .curbrk, .minbrk for WITHOUT_SYMVER 2016-04-14 16:32:27 +00:00
amd64 libc: stop exporting curbrk and minbrk in the private namespace 2016-03-24 18:47:19 +00:00
arm Revert a change that sneeked with 297619 2016-04-06 16:50:18 +00:00
capability
compat-43 Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-20 20:53:24 +00:00
db libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
gdtoa META MODE: Don't create .meta files when symlinking sources into the obj directory. 2015-11-25 19:44:43 +00:00
gen Remove trailing whitespace and use nitems(mib) instead of 2 when 2016-04-19 22:59:21 +00:00
gmon Replace the last non-optional use of sbrk() in the tree with mmap(). 2016-01-21 18:17:19 +00:00
i386 libc: stop exporting curbrk and minbrk in the private namespace 2016-03-24 18:47:19 +00:00
iconv libc: don't build compat functions if building WITHOUT_SYMVER 2016-03-15 19:26:32 +00:00
include Disable support for compat syscalls on arm64. These symbols were never 2016-04-06 16:09:10 +00:00
inet libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
isc libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
locale libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
md
mips libc: stop exporting cerror 2016-03-30 14:42:09 +00:00
nameser
net libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
nls Move logic to destroy a struct catentry to its own function. 2016-02-02 23:33:58 +00:00
posix1e libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
powerpc libc: make some more use of the nitems() macro. 2016-04-16 17:52:00 +00:00
powerpc64 libc: make some more use of the nitems() macro. 2016-04-16 17:52:00 +00:00
quad
regex Add -static to CFLAGS to unbreak the tests by using a libc.a with 2015-12-13 06:33:52 +00:00
resolv libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
riscv libc: stop exporting curbrk and minbrk in the private namespace 2016-03-24 18:47:19 +00:00
rpc libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
secure libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
softfloat libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
sparc64 libc: stop exporting cerror 2016-03-30 14:42:09 +00:00
stdio freopen(3): prevent uninitialized errno. 2016-03-30 13:26:35 +00:00
stdlib libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
stdtime Implement (ACFLAGS|CFLAGS|CXXFLAGS).SRC globally. 2016-03-26 03:46:12 +00:00
string Make it clear that the "size" argument is for the dst string. 2016-02-26 22:14:19 +00:00
sys Document KTRFAC_FAULT and KTRFAC_FAULTEND. 2016-03-31 23:55:19 +00:00
tests Make sure fmemopen succeeds in :test_append_binary_pos before calling ftell 2016-04-19 23:59:10 +00:00
uuid libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
xdr libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
yp libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
libc.ldscript
Makefile MFH 2016-04-04 23:55:32 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
Versions.def