From nobody@FreeBSD.org  Thu Apr  6 13:40:43 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8A4E316A401
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Apr 2006 13:40:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 58DD443D46
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Apr 2006 13:40:43 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k36DegOk097193
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 6 Apr 2006 13:40:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k36DegD5097192;
	Thu, 6 Apr 2006 13:40:42 GMT
	(envelope-from nobody)
Message-Id: <200604061340.k36DegD5097192@www.freebsd.org>
Date: Thu, 6 Apr 2006 13:40:42 GMT
From: Stanislaw Halik <sthalik@tehran.lain.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: misc/pinfo - uninitialized pointer dereference introduced by a patch in ports
X-Send-Pr-Version: www-2.3

>Number:         95410
>Category:       ports
>Synopsis:       misc/pinfo - uninitialized pointer dereference introduced by a patch in ports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 06 13:50:11 GMT 2006
>Closed-Date:    Fri Apr 14 01:51:18 GMT 2006
>Last-Modified:  Fri Apr 14 01:51:18 GMT 2006
>Originator:     Stanislaw Halik
>Release:        6.1-PRERELEASE
>Organization:
>Environment:
FreeBSD tehran.lain.pl 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Tue Mar 28 13:22:46 CEST 2006     root@tehran.lain.pl:/usr/obj/usr/src/sys/TEHRAN  i386
>Description:
misc/pinfo/files/patch-src__utils.c has introduced the following bug:

--- src/utils.c.orig    Thu Mar 16 23:14:30 2006
+++ src/utils.c Fri Mar 17 16:04:57 2006
[...]
-       char *c = str_start;
+       *c = str_start;

which changes an attribution to the pointer to an uninitialized pointer dereference
>How-To-Repeat:
pinfo crashes after a while
>Fix:
change patch-src__utils.c:38

-+       *c = str_start;
++        c = str_start;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mnag 
State-Changed-When: Fri Apr 14 01:51:16 UTC 2006 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95410 
>Unformatted:
