newlib/winsup/utils
Corinna Vinschen 09981903e6 Cygwin: ps: fix compiler warning in ttynam
The helper function ttynam creates a tty name by using sprintf wrongly
on a pretty short buffer.  The foramt string only specifies a minimum
field length, not a maximum field length, so gcc-9.2.0 complains:

  ps.cc:101:23: warning: 'sprintf' may write a terminating nul past the
  end of the destination [-Wformat-overflow=]

Fix this thoroughly by specifying a maximum field width as well as by
using snprintf with a fixed buffer length.  Also, drop using a static
buffer in favor of using a buffer in the caller.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-02-26 21:08:51 +01:00
..
aclocal.m4
autogen.sh
bloda.cc Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
chattr.c Cygwin: Add lsattr and chattr tools 2018-12-26 09:24:33 +01:00
configure Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET, fix AC_INIT usage 2016-03-30 14:09:19 +02:00
configure.ac Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
COPYING.dumper
cygcheck.cc cygcheck: expand common_apps list 2019-06-04 11:31:54 -04:00
cygpath.cc cygutils: Fix resource leak in get_short_paths 2016-11-24 16:04:42 +01:00
cygwin-console-helper.cc Cygwin: pty: Prevent the helper process from exiting by Ctrl-C. 2019-09-14 09:17:27 -04:00
dump_setup.cc winsup/utils/dump_setup.cc: Remove the function 'base' 2017-10-25 17:02:26 +02:00
dumper.cc Cygwin: suppress GCC 8.3 errors with -Warray-bounds 2019-07-16 13:19:33 -04:00
dumper.h Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
gencat.c cygwin: add gencat tool 2018-01-19 13:19:21 -06:00
getconf.c cygwin: add LFS_CFLAGS etc. to confstr/getconf 2018-01-16 12:12:45 -06:00
getfacl.c getfacl: Simplify by using acl_to_any_text 2018-07-25 09:32:36 +02:00
kill.cc Cygwin: utils: kill: revert erroneously removed optind correction 2019-02-18 10:22:37 +01:00
ldd.cc Cygwin: ldd: Try harder to get dll names 2019-08-15 09:56:11 +02:00
ldh.cc
loadlib.h Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
locale.cc Add -i/--input option to locale(1) 2016-08-17 10:58:04 +02:00
lsattr.c Cygwin: Add lsattr and chattr tools 2018-12-26 09:24:33 +01:00
Makefile.in Cygwin: ldd: Try harder to get dll names 2019-08-15 09:56:11 +02:00
minidumper.cc Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
mkgroup.c mkgroup/mkpasswd: Fix potential buffer overwrite in corner case 2016-10-23 17:04:55 +02:00
mkpasswd.c mkgroup/mkpasswd: Fix potential buffer overwrite in corner case 2016-10-23 17:04:55 +02:00
module_info.cc Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
mount.cc Cygwin: utils: MOUNT_BINARY -> MOUNT_TEXT 2019-02-18 11:02:03 +01:00
parse_pe.cc Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
passwd.c passwd: Fix potential buffer overflow 2016-10-23 17:16:30 +02:00
path.cc Cygwin: utils: MOUNT_BINARY -> MOUNT_TEXT 2019-02-18 11:02:03 +01:00
path.h Cygwin: utils: change 3rd readlink param to size_t 2018-08-08 10:50:19 +02:00
pldd.c pldd: Fix resource leak and missing check if fopen failed 2016-10-23 17:22:34 +02:00
ps.cc Cygwin: ps: fix compiler warning in ttynam 2020-02-26 21:08:51 +01:00
regtool.cc regtool: allow /proc/registry{,32,64}/ registry path prefix 2019-11-13 09:39:04 +01:00
setfacl.c setfacl: Rename the option --file to --set-file, as on Linux 2018-08-17 11:35:24 +02:00
setmetamode.c Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
ssp.c Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
ssp.txt
strace.cc Cygwin: strace: print windows and cygwin pid in event output 2019-03-23 17:50:00 +01:00
testsuite.cc Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
testsuite.h Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
tzmap-from-unicode.org
tzmap.h
tzset.c tzset: Fix array length given to GetGeoInfoW 2016-10-23 16:45:21 +02:00
umount.cc Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
wide_path.h Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00