From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 20 18:20:20 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83F4616A403 for ; Thu, 20 Apr 2006 18:20:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 827EE43D4C for ; Thu, 20 Apr 2006 18:20:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3KIKFpR082028 for ; Thu, 20 Apr 2006 18:20:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3KIKFEd082023; Thu, 20 Apr 2006 18:20:15 GMT (envelope-from gnats) Resent-Date: Thu, 20 Apr 2006 18:20:15 GMT Resent-Message-Id: <200604201820.k3KIKFEd082023@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vivek Khera Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9358916A402 for ; Thu, 20 Apr 2006 18:12:43 +0000 (UTC) (envelope-from khera@kcilink.com) Received: from yertle.kcilink.com (yertle.kcilink.com [65.205.34.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53A5443D46 for ; Thu, 20 Apr 2006 18:12:43 +0000 (GMT) (envelope-from khera@kcilink.com) Received: by yertle.kcilink.com (Postfix, from userid 1002) id A18B2B80C; Thu, 20 Apr 2006 14:12:42 -0400 (EDT) Message-Id: <20060420181242.A18B2B80C@yertle.kcilink.com> Date: Thu, 20 Apr 2006 14:12:42 -0400 (EDT) From: Vivek Khera To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/96114: patch for security/p5-Crypt-Rijndael for 64-bit X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vivek Khera List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2006 18:20:20 -0000 >Number: 96114 >Category: ports >Synopsis: patch for security/p5-Crypt-Rijndael for 64-bit >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Apr 20 18:20:14 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Vivek Khera >Release: FreeBSD 6.1-PRERELEASE amd64 >Organization: >Environment: System: FreeBSD yertle.int.kciLink.com 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #4: Thu Mar 2 13:53:40 EST 2006 khera@yertle.int.kciLink.com:/usr/obj/usr/src/sys/KCI64 amd64 >Description: The perl module Crypt::Rijndael has a bug in it causing it to fail on all 64-bit architectures. It assumes that C type long is 32 bits. The patch below works with both i386 and amd64 and should with others. See also https://rt.cpan.org/Ticket/Display.html?id=769 https://rt.cpan.org/Ticket/Display.html?id=9514 >How-To-Repeat: build p5-Crypt-Rijndael on amd64 system and run the module's self-test script. >Fix: You might need to create the files subdirectory before applying the patch. diff -Pru p5-Crypt-Rijndael/Makefile p5-Crypt-Rijndael.new/Makefile --- p5-Crypt-Rijndael/Makefile Sat Aug 9 09:22:07 2003 +++ p5-Crypt-Rijndael.new/Makefile Thu Apr 20 14:07:48 2006 @@ -7,6 +7,7 @@ PORTNAME= Crypt-Rijndael PORTVERSION= 0.05 +PORTREVISION= 1 CATEGORIES= security perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Crypt diff -Pru p5-Crypt-Rijndael/files/patch-rijndael_h p5-Crypt-Rijndael.new/files/patch-rijndael_h --- p5-Crypt-Rijndael/files/patch-rijndael_h Wed Dec 31 19:00:00 1969 +++ p5-Crypt-Rijndael.new/files/patch-rijndael_h Thu Apr 20 14:04:41 2006 @@ -0,0 +1,11 @@ +--- #rijndael.h~ Thu Apr 20 13:56:04 2006 ++++ rijndael.h Thu Apr 20 13:56:04 2006 +@@ -27,7 +27,7 @@ + + #include + +-typedef unsigned long UINT32; ++typedef unsigned int UINT32; + typedef unsigned char UINT8; + + /* Other block sizes and key lengths are possible, but in the context of >Release-Note: >Audit-Trail: >Unformatted: