glibc/nis
Robbie Harwood 6069826312 nis: Fix leak on realloc failure in nis_getnames [BZ #28150]
If pos >= count but realloc fails, tmp will not have been placed in
getnames[pos] yet, and so will not be freed in free_null.  Detected
by Coverity.

Also remove misleading comment from nis_getnames(), since it actually
did properly release getnames when out of memory.

Tested-by: Carlos O'Donell <carlos@redhat.com>
2021-08-02 11:14:20 -04:00
..
rpcsvc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Depend Update. 1998-11-30 16:42:19 +00:00
libnsl.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_add.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_addmember.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_call.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_callback.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_checkpoint.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_clone_dir.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_clone_obj.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_clone_res.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_creategroup.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_defaults.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_destroygroup.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_domain_of_r.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_domain_of.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_error.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08: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 2021-01-02 12:17:34 -08:00
nis_findserv.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_free.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_getservlist.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_hash.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_intern.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_ismember.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_local_names.c nis: nis_local_group may read from __nisgroup[-1] (bug 28075) 2021-07-12 07:58:07 +02:00
nis_lookup.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_mkdir.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_modify.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_ping.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_print_group_entry.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_print.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_remove.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_removemember.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_rmdir.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_server.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_subr.c nis: Fix leak on realloc failure in nis_getnames [BZ #28150] 2021-08-02 11:14:20 -04:00
nis_table.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_util.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_verifygroup.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_xdr.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nis_xdr.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Versions Remove --enable-obsolete-nsl configure flag 2020-07-08 17:25:57 +02:00
yp_xdr.c libnsl: Turn remaining symbols into compat symbols [BZ #22701] 2018-01-29 17:42:30 +01:00
ypclnt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ypupdate_xdr.c Include shlib-compat.h in many sunrpc/nis source files. 2017-06-04 11:31:28 -04:00