From owner-freebsd-bugs Wed Jul 24 08:50:05 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA26287 for bugs-outgoing; Wed, 24 Jul 1996 08:50:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA26279; Wed, 24 Jul 1996 08:50:02 -0700 (PDT) Resent-Date: Wed, 24 Jul 1996 08:50:02 -0700 (PDT) Resent-Message-Id: <199607241550.IAA26279@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, ikuo@isl.intec.co.jp 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 ; 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 X-Send-Pr-Version: 3.2 Subject: misc/1424: MDXEnd ignores the second argument `buf'. Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: