Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jun 1995 00:20:02 -0700
From:      Jeffrey Hsu <hsu>
To:        freebsd-bugs
Subject:   bin/476: kvm_openfiles called w/ too small error buffer
Message-ID:  <199506020720.AAA10791@freefall.cdrom.com>
In-Reply-To: Your message of Fri, 2 Jun 1995 00:15:06 -0700 <199506020715.AAA10426@freefall.cdrom.com>

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

>Number:         476
>Category:       bin
>Synopsis:       kvm_openfiles called w/ too small error buffer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun  2 00:20:00 1995
>Originator:     Jeffrey &
>Organization:
>Release:        FreeBSD 2.1.0-Development i386
>Environment:

	FreeBSD-current

>Description:

	bin/ps.c calls kvm_openfiles w/ errbuf[256] while the
	man page for kvm_openfiles says the size of the error
	buffer should be _POSIX2_LINE_MAX, which is 2048.

>How-To-Repeat:

	Eyeball the code.

>Fix:
	
	Change 256 to _POSIX2_LINE_MAX.  Or change documentation, whichever
	is appropriate.

>Audit-Trail:
>Unformatted:





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