[freeradius/f20] resolves: bug#1068798 (fedora 1068795) rlm_perl attribute values truncated
John Dennis
jdennis at fedoraproject.org
Fri Feb 21 22:57:31 UTC 2014
commit eb605f00ee5e264bc19635e41557e80f4d5ebbb8
Author: John Dennis <jdennis at redhat.com>
Date: Fri Feb 21 17:57:49 2014 -0500
resolves: bug#1068798 (fedora 1068795)
rlm_perl attribute values truncated
freeradius-perl.patch | 19 +++++++++++++++++++
freeradius.spec | 12 +++++++++---
2 files changed, 28 insertions(+), 3 deletions(-)
---
diff --git a/freeradius-perl.patch b/freeradius-perl.patch
new file mode 100644
index 0000000..bdac7fb
--- /dev/null
+++ b/freeradius-perl.patch
@@ -0,0 +1,19 @@
+commit 57d0db0e1dfa3fc25d0bfc146fec1c89a446a9ea
+Author: Alan T. DeKok <aland at freeradius.org>
+Date: Wed Jan 22 15:11:33 2014 -0500
+
+ Use size out output buffer, not size of output pointer
+
+diff --git a/src/lib/print.c b/src/lib/print.c
+index a6e5391..5bc5e02 100644
+--- a/src/lib/print.c
++++ b/src/lib/print.c
+@@ -266,7 +266,7 @@ size_t vp_prints_value(char *out, size_t outlen, VALUE_PAIR const *vp, int8_t qu
+ return strlen(out);
+ }
+
+- return fr_print_string(vp->vp_strvalue, vp->length, out, sizeof(out));
++ return fr_print_string(vp->vp_strvalue, vp->length, out, outlen);
+
+ case PW_TYPE_INTEGER:
+ if (vp->da->flags.has_tag) {
diff --git a/freeradius.spec b/freeradius.spec
index de67b73..25af7a8 100644
--- a/freeradius.spec
+++ b/freeradius.spec
@@ -1,7 +1,7 @@
Summary: High-performance and highly configurable free RADIUS server
Name: freeradius
Version: 3.0.1
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2+ and LGPLv2+
Group: System Environment/Daemons
URL: http://www.freeradius.org/
@@ -26,6 +26,7 @@ Patch2: freeradius-postgres-sql.patch
Patch3: freeradius-ippool.patch
Patch4: freeradius-imacros.patch
Patch5: freeradius-mysql-schema.patch
+Patch6: freeradius-perl.patch
%global docdir %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
@@ -180,13 +181,14 @@ This plugin provides the unixODBC support for the FreeRADIUS server project.
%prep
%setup -q -n %{dist_base}
-# Note: We explicitly do not make patch backup files because the build
-# mistakenly include these files, especially problematic for raddb config files.
+# Note: We explicitly do not make patch backup files because 'make install'
+# mistakenly includes the backup files, especially problematic for raddb config files.
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
%build
# Force compile/link options, extra security for network facing daemon
@@ -748,6 +750,10 @@ exit 0
%{_libdir}/freeradius/rlm_sql_unixodbc.so
%changelog
+* Fri Feb 21 2014 John Dennis <jdennis at redhat.com> - 3.0.1-3
+- resolves: bug#1068798 (fedora 1068795)
+ rlm_perl attribute values truncated
+
* Sun Jan 19 2014 John Dennis <jdennis at redhat.com> - 3.0.1-2
- resolves: bug#1055073 (fedora 1055072)
rlm_ippool; bad config file attribute and fails to send reply attributes
More information about the scm-commits
mailing list