glibc/nis
Maciej W. Rozycki 780684eb04 nisplus: Correct pwent parsing issue and resulting build error [BZ #23266]
Copy and null-terminate NIS+ password file UID and GID entries whose
length is non-zero and are not terminated, in addition to empty ones,
fixing a bug and a compilation issue causing an error with GCC 8:

nss_nisplus/nisplus-parser.c: In function '_nss_nisplus_parse_pwent':
nss_nisplus/nisplus-parser.c:90:7: error: 'strncpy' destination unchanged after copying no bytes [-Werror=stringop-truncation]
       strncpy (first_unused, numstr, len);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nss_nisplus/nisplus-parser.c:106:7: error: 'strncpy' destination unchanged after copying no bytes [-Werror=stringop-truncation]
       strncpy (first_unused, numstr, len);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

introduced with commit ac05397075:

commit ac05397075
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Sun Apr 30 07:01:26 2006 +0000

	* nis/nss_nisplus/nisplus-parser.c: Minor optimizations and
	cleanups.  Avoid copying data if it can be used in the old place.

(no mailing list reference available).  Obviously regardless of the
recently added compiler diagnostics causing a build error this code has
been long non-functional, so I guess NIS+ servers have been supplying
strings that are non-empty and have already been null-terminated.
Which in turn made it unnecessary to make a null-terminated copy,
masking this bug.

	[BZ #23266]
	* nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
	Copy and null-terminate entries that are not terminated, in
	addition to empty ones.
2018-06-27 21:12:16 +01:00
..
nss_nis _nss_nis_initgroups_dyn: Use struct scratch_buffer [BZ #18023] 2018-06-25 19:14:09 +02:00
nss_nisplus nisplus: Correct pwent parsing issue and resulting build error [BZ #23266] 2018-06-27 21:12:16 +01:00
rpcsvc libnsl: Turn remaining symbols into compat symbols [BZ #22701] 2018-01-29 17:42:30 +01:00
Depend
libnsl.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Makefile libnsl: Turn remaining symbols into compat symbols [BZ #22701] 2018-01-29 17:42:30 +01:00
nis_add.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_addmember.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_call.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_callback.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_checkpoint.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_clone_dir.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_clone_obj.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_clone_res.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_creategroup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_defaults.c libnsl: Turn remaining symbols into compat symbols [BZ #22701] 2018-01-29 17:42:30 +01:00
nis_destroygroup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_domain_of_r.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_domain_of.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_error.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_error.h * nis/nis_error.c: Remove table of strings. Use position 2006-05-11 20:29:20 +00:00
nis_file.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_findserv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_free.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_getservlist.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_hash.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_intern.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_ismember.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_local_names.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_lookup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_mkdir.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_modify.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_ping.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_print_group_entry.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_print.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_remove.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_removemember.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_rmdir.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_server.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_subr.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_table.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_util.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_verifygroup.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_xdr.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nis_xdr.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nisplus-parser.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nss Implement new mode for NIS passwd.adjunct.byname table. 2010-04-07 07:37:39 -07:00
nss-default.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nss-nis.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nss-nis.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nss-nisplus.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
nss-nisplus.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Versions Move nss_compat from nis to nss subdir and install it unconditionally 2017-10-04 14:20:48 +02:00
yp_xdr.c libnsl: Turn remaining symbols into compat symbols [BZ #22701] 2018-01-29 17:42:30 +01:00
ypclnt.c libnsl: Turn remaining symbols into compat symbols [BZ #22701] 2018-01-29 17:42:30 +01:00
ypupdate_xdr.c Include shlib-compat.h in many sunrpc/nis source files. 2017-06-04 11:31:28 -04:00