platform_bionic/libc
Robert Alm 3638a83657 Add error-check when mapping socket to fd
The call to fdopen can fail in several ways.
The fprintf on the next line will then dereference a
NULL-pointer FILE*.
Added a NULL-check, closed the socket, returned system error
and added a comment about it.

Change-Id: I7a6b26aa3c79452b1fdd76af12dfa75da88cbad7
2014-11-27 11:01:50 -08:00
..
arch-arm Bring our <machine/endian.h> files back in sync. 2014-11-21 18:34:36 -08:00
arch-arm64 Bring our <machine/endian.h> files back in sync. 2014-11-21 18:34:36 -08:00
arch-common/bionic Revert "Register __libc_fini as early as possible." 2014-09-04 21:54:34 +00:00
arch-mips [MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6 2014-11-25 17:33:10 -08:00
arch-mips64 [MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6 2014-11-25 17:33:10 -08:00
arch-x86 Add sethostname(2). 2014-11-07 16:48:27 -08:00
arch-x86_64 Move a private x86-64 header file out of the limelight. 2014-11-26 19:31:19 -08:00
bionic Merge "flesh out sysconf(3) and the _POSIX_* constants" 2014-11-24 01:59:23 +00:00
dns Add error-check when mapping socket to fd 2014-11-27 11:01:50 -08:00
include Merge "flesh out sysconf(3) and the _POSIX_* constants" 2014-11-24 01:59:23 +00:00
kernel am d5e1c583: Merge "Move to v3.16.3 kernel headers." 2014-09-18 21:48:49 +00:00
private Move some pthread functions to signal.h. 2014-11-21 10:26:09 -08:00
stdio Fix flockfile(3) and friends for stdin/stdout/stderr too. 2014-11-19 15:16:51 -08:00
tools Fix tzdata update tools for 'backzone'. 2014-11-11 16:30:18 -08:00
tzcode libc: Fix mktime returns an uncorrect time in empty TZ case 2014-11-14 18:13:07 -08:00
upstream-dlmalloc Return total footprint, not high water mark. 2014-10-13 12:45:35 -07:00
upstream-freebsd Remove an unused file. 2014-10-29 13:42:23 -07:00
upstream-netbsd Add POSIX lcong48. 2014-11-06 14:14:37 -08:00
upstream-openbsd Sync with upstream OpenBSD fts.c. 2014-11-21 19:27:28 -08:00
zoneinfo Upgrade bionic to tzdata2014j. 2014-11-11 16:44:21 -08:00
Android.mk Sync with upstream OpenBSD fts.c. 2014-11-21 19:27:28 -08:00
crt.mk
MODULE_LICENSE_BSD
NOTICE Update NOTICE files. 2014-09-13 09:42:41 -07:00
SYSCALLS.TXT Add sethostname(2). 2014-11-07 16:48:27 -08:00