From ikuo@isl.intec.co.jp  Wed Jul 24 08:46:46 1996
Received: from ftp.intec.co.jp (root@is.intec.co.jp [133.230.1.34])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA25963
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 24 Jul 1996 08:46:34 -0700 (PDT)
Received: from queen.isl.intec.co.jp by ftp.intec.co.jp (8.7.5+2.6Wbeta6/3.4W4-generic) id AAA00535; Thu, 25 Jul 1996 00:46:21 +0900 (JST)
Received: (from ikuo@localhost) by queen.isl.intec.co.jp (8.7.5/3.5Wbeta-generic) id AAA07347; Thu, 25 Jul 1996 00:46:20 +0900 (JST)
Message-Id: <199607241546.AAA07347@queen.isl.intec.co.jp>
Date: Thu, 25 Jul 1996 00:46:20 +0900 (JST)
From: ikuo@isl.intec.co.jp
Reply-To: ikuo@isl.intec.co.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: MDXEnd ignores the second argument `buf'.
X-Send-Pr-Version: 3.2

>Number:         1424
>Category:       misc
>Synopsis:       MDXEnd ignores the second argument `buf'.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 24 08:50:01 PDT 1996
>Closed-Date:    Wed Jul 24 13:55:45 PDT 1996
>Last-Modified:  Wed Jul 24 13:56:20 PDT 1996
>Originator:     Ikuo Nakagawa
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
INTEC Inc., Japan
>Environment:
System: FreeBSD 2.1.5-RELEASE

>Description:
 MDXEnd() in lib/libmd/mdXhl.c ignores the second argument `buf',
 and always calls malloc().

>How-To-Repeat:

	

>Fix:
*** mdXhl.c.orig	Thu Jul 25 00:39:00 1996
--- mdXhl.c	Thu Jul 25 00:39:26 1996
***************
*** 23,29 ****
  MDXEnd(MDX_CTX *ctx, char *buf)
  {
      int i;
!     char *p = malloc(33);
      unsigned char digest[16];
      static const char hex[]="0123456789abcdef";
  
--- 23,29 ----
  MDXEnd(MDX_CTX *ctx, char *buf)
  {
      int i;
!     char *p = buf;
      unsigned char digest[16];
      static const char hex[]="0123456789abcdef";
  
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Wed Jul 24 13:55:45 PDT 1996 
State-Changed-Why:  
Fixed, thank you! 
>Unformatted:
