Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2006 14:12:42 -0400 (EDT)
From:      Vivek Khera <vivek@khera.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/96114: patch for security/p5-Crypt-Rijndael for 64-bit
Message-ID:  <20060420181242.A18B2B80C@yertle.kcilink.com>
Resent-Message-ID: <200604201820.k3KIKFEd082023@freefall.freebsd.org>

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

>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 <stdlib.h>
+ 
+-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:



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