Bug 3411 - innetgr() crash when nsswitch.conf contains netgroup: nisplus
Summary: innetgr() crash when nsswitch.conf contains netgroup: nisplus
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: nis (show other bugs)
Version: 2.4
: P2 normal
Target Milestone: ---
Assignee: Thorsten Kukuk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-23 06:04 UTC by Catalin Patulea
Modified: 2018-04-20 14:15 UTC (History)
1 user (show)

See Also:
Host: i386-redhat-linux
Target: i386-redhat-linux
Build: i386-redhat-linux
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Catalin Patulea 2006-10-23 06:04:53 UTC
When innetgr() is called with ("group", NULL, "user", NULL), the program
segfaults because of a strdup(NULL).

See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=208718.
Comment 1 Jakub Jelinek 2006-10-23 07:10:46 UTC
This is already fixed on glibc trunk:
2006-10-10  Ulrich Drepper  <drepper@redhat.com>

        * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
        components which lack them.

        * nis/nis_subr.c (nis_getnames): Make sure that we always return
        at least one entry consisting of the parameter concatenated with
        the domain.
and is planned soon for glibc-2_5-branch.