libuv/src/unix
Ben Noordhuis 8972e65bf5 unix: harden string copying, introduce strscpy()
Replace calls to strcpy() and strncpy() with the newly introduced
uv__strscpy() function that is meticulous about zero-terminating
the destination buffer.

PR-URL: https://github.com/libuv/libuv/pull/2065
Refs: https://www.kernel.org/doc/htmldocs/kernel-api/API-strscpy.html
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2018-12-04 17:08:09 +01:00
..
aix-common.c unix: remove unnecessary linebreaks 2018-10-15 14:51:11 -04:00
aix.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
android-ifaddrs.c core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
async.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
atomic-ops.h sunos: fix cmpxchgi and cmpxchgl type error 2017-07-01 00:24:42 +02:00
bsd-ifaddrs.c unix,win: make uv_interface_addresses() consistent 2018-10-15 14:49:13 -04:00
bsd-proctitle.c core,bsd: refactor process_title functions 2018-10-18 10:11:40 +02:00
core.c unix: remove unused uv__dup() function 2018-10-17 20:26:03 +02:00
cygwin.c unix: return 0 retrieving rss on cygwin 2018-09-21 10:51:38 -04:00
darwin-proctitle.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
darwin.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
dl.c misc: remove unnecessary null pointer checks 2015-11-17 09:18:55 +01:00
freebsd.c core,bsd: refactor process_title functions 2018-10-18 10:11:40 +02:00
fs.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
fsevents.c unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
getaddrinfo.c unix,win: support IDNA 2008 in uv_getaddrinfo() 2018-10-30 20:50:23 +01:00
getnameinfo.c unix,win: limit concurrent DNS calls to nthreads/2 2018-08-21 10:48:24 +02:00
ibmi.c ibmi: return 0 from uv_resident_set_memory() 2018-09-18 11:54:27 -04:00
internal.h unix: remove unused uv__dup() function 2018-10-17 20:26:03 +02:00
kqueue.c src,test: fix idiosyncratic comment style 2018-05-29 11:56:49 -07:00
linux-core.c unix: zero epoll_event before use 2018-11-20 22:01:35 -05:00
linux-inotify.c core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
linux-syscalls.c linux: remove epoll syscall wrappers 2018-09-06 13:07:13 +02:00
linux-syscalls.h linux: remove epoll syscall wrappers 2018-09-06 13:07:13 +02:00
loop-watcher.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
loop.c unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
netbsd.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
no-fsevents.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
no-proctitle.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
openbsd.c core,bsd: refactor process_title functions 2018-10-18 10:11:40 +02:00
os390-syscalls.c zos: use correct pointer type in strnlen 2018-06-29 04:38:28 -07:00
os390-syscalls.h linux: remove epoll syscall wrappers 2018-09-06 13:07:13 +02:00
os390.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
pipe.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
poll.c unix: catch some cases of watching fd twice 2018-05-30 13:24:19 +02:00
posix-hrtime.c unix: factor out reusable POSIX hrtime impl 2017-03-03 15:52:42 +01:00
posix-poll.c posix: fix uv__pollfds_del() for invalidated fd's 2018-02-28 22:01:41 +01:00
process.c unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
procfs-exepath.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
proctitle.c darwin: speed up uv_set_process_title() 2018-11-04 18:37:56 +01:00
pthread-fixes.c unix: fix bug in barrier fallback implementation 2016-04-26 09:35:47 +02:00
signal.c unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
spinlock.h unix: add spinlock.h 2013-10-20 13:58:34 +02:00
stream.c stream: autodetect direction 2018-09-19 18:19:28 +02:00
sunos.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
sysinfo-loadavg.c unix: factor out reusable sysinfo loadavg impl 2017-05-21 16:12:16 +02:00
sysinfo-memory.c unix: factor out reusable sysinfo memory lookup 2017-05-21 16:12:14 +02:00
tcp.c unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
thread.c unix: signal done to last thread barrier waiter 2018-10-08 11:14:41 +02:00
tty.c stream: autodetect direction 2018-09-19 18:19:28 +02:00
udp.c unix,win: merge handle flags 2018-06-29 22:24:52 +02:00