Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 1996 07:53:00 -0600 (CST)
From:      Mike Pritchard <mpp@minn.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/964: Net user in password file causes malloc warning msgs
Message-ID:  <199601221353.HAA20973@mpp.minn.net>
Resent-Message-ID: <199601221400.GAA12606@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         964
>Category:       bin
>Synopsis:       Net user in password file causes malloc warning msgs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 22 06:00:01 PST 1996
>Last-Modified:
>Originator:     Mike Pritchard
>Organization:
Mike Pritchard
>Release:        FreeBSD 2.2-CURRENT i386
>Environment:

FreeBSD 2.2-CURRENT as of about a week ago

>Description:

While running a test case from a PR, I added a NIS type user to
the end of my password file (+mpptest:*:0:0:...).  After that,
every program that calls the getpw* routines issues the following
malloc messages:

Malloc warning: free(): junk pointer (too low)
  - or -
Malloc warning: free(): junk pointer (too high)

It also scared the hell out of me when vipw issued the same
warning when I went in to remove that user from my password file.

NOTE: I am not really running any of the NIS stuff, I was
just attempting to verify a PR, so that may be why things
are getting screw up.  Either way there is something wrong
that needs to be fixed.

>How-To-Repeat:

Add a line like:

+mpptest:*:0:0:...

to the end of your password file.

>Fix:
	
Haven't looked. I figured I'd let someone who knows something
about this code take a shot at it first.
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601221353.HAA20973>