diff --git a/bcrypt-fencepost.patch b/bcrypt-fencepost.patch new file mode 100644 index 0000000..5082981 --- /dev/null +++ b/bcrypt-fencepost.patch @@ -0,0 +1,11 @@ +--- bcrypt-ORIG/rwfile.c 2002-09-12 17:03:01.000000000 -0700 ++++ bcrypt-ORIG/rwfile.c 2016-06-30 12:53:08.568733251 -0700 +@@ -32,7 +32,7 @@ + r = j - sz; + + if ( r < j) { +- if ((*input = realloc(*input, sz + r + 1)) == NULL) ++ if ((*input = realloc(*input, sz + r + 2)) == NULL) + memerror(); + + memset(*input+sz, 0, r + 1); diff --git a/bcrypt.spec b/bcrypt.spec index 24b1318..01a8799 100644 --- a/bcrypt.spec +++ b/bcrypt.spec @@ -1,12 +1,13 @@ Name: bcrypt Version: 1.1 -Release: 13%{?dist} +Release: 14%{?dist} Summary: File encryption utility Group: Applications/File License: BSD URL: http://%{name}.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: bcrypt-fencepost.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: zlib-devel @@ -28,6 +29,8 @@ Bruce Schneier in 1993. %prep %setup -q +%patch0 -p1 -b .fencepost + %{__perl} -pi.orig -e 's|\${PREFIX}/man/man1|\${PREFIX}/share/man/man1|g' Makefile @@ -51,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/bcrypt %changelog +* Thu Jun 30 2016 Jon Ciesla - 1.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild