Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 1996 00:46:20 +0900 (JST)
From:      ikuo@isl.intec.co.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/1424: MDXEnd ignores the second argument `buf'.
Message-ID:  <199607241546.AAA07347@queen.isl.intec.co.jp>
Resent-Message-ID: <199607241550.IAA26279@freefall.freebsd.org>

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

>Number:         1424
>Category:       misc
>Synopsis:       MDXEnd ignores the second argument `buf'.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 24 08:50:01 PDT 1996
>Last-Modified:
>Originator:     Ikuo Nakagawa
>Organization:
INTEC Inc., Japan
>Release:        FreeBSD 2.1-STABLE i386
>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";
  
>Audit-Trail:
>Unformatted:



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