[interchange-cvs] interchange - racke modified 2 files

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Thu Aug 1 12:32:01 2002


User:      racke
Date:      2002-08-01 16:31:28 GMT
Modified:  .        Tag: STABLE_4_8-branch WHATSNEW
Modified:  lib/Vend Tag: STABLE_4_8-branch Config.pm
Log:
Pass the locale name instead of the locale settings in
Vend::Config::parse_locales() to POSIX::setlocale.
This bug was discovered due to a buffer overflow in the FreeBSD C
library. Thanks to Joachim Leidinger for reporting and pursuing
this problem and Alexander Leidinger for debugging.

Revision  Changes    Path
No                   revision



No                   revision



2.6.2.74  +6 -0      interchange/WHATSNEW


rev 2.6.2.74, prev_rev 2.6.2.73
Index: WHATSNEW
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /anon_cvs/repository/interchange/WHATSNEW,v
retrieving revision 2.6.2.73
retrieving revision 2.6.2.74
diff -u -r2.6.2.73 -r2.6.2.74
--- WHATSNEW	29 Jul 2002 16:44:08 -0000	2.6.2.73
+++ WHATSNEW	1 Aug 2002 16:31:25 -0000	2.6.2.74
@@ -49,6 +49,12 @@
 * Fixed error in Vend::Interpolate::tag_mail where a code reference is
   used as a hash reference if the passed body is empty.
=20
+* Pass the locale name instead of the locale settings in=20
+  Vend::Config::parse_locales() to POSIX::setlocale.=20
+  This bug was discovered due to a buffer overflow in the FreeBSD C
+  library. Thanks to Joachim Leidinger for reporting and pursuing
+  this problem and Alexander Leidinger for debugging.
+
 Usertags
 --------
=20



No                   revision



No                   revision



2.2.2.10  +3 -3      interchange/lib/Vend/Config.pm


rev 2.2.2.10, prev_rev 2.2.2.9
Index: Config.pm
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /anon_cvs/repository/interchange/lib/Vend/Config.pm,v
retrieving revision 2.2.2.9
retrieving revision 2.2.2.10
diff -u -r2.2.2.9 -r2.2.2.10
--- Config.pm	27 Jun 2002 22:38:24 -0000	2.2.2.9
+++ Config.pm	1 Aug 2002 16:31:27 -0000	2.2.2.10
@@ -1,6 +1,6 @@
 # Vend::Config - Configure Interchange
 #
-# $Id: Config.pm,v 2.2.2.9 2002/06/27 22:38:24 jon Exp $
+# $Id: Config.pm,v 2.2.2.10 2002/08/01 16:31:27 racke Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -95,7 +95,7 @@
 use Vend::Parse;
 use Vend::Util;
=20
-$VERSION =3D substr(q$Revision: 2.2.2.9 $, 10);
+$VERSION =3D substr(q$Revision: 2.2.2.10 $, 10);
=20
 my %CDname;
=20
@@ -1707,7 +1707,7 @@
 				and $eval =3D 1;
 		$eval and ! $safe and $safe =3D new Safe;
 		if(! defined $store->{$name} and $item eq 'Locale') {
-			if(POSIX::setlocale(POSIX::LC_ALL, $settings) ) {
+			if(POSIX::setlocale(POSIX::LC_ALL, $name) ) {
 				$store->{$name} =3D POSIX::localeconv();
 			}
 		}