From 3a6cb19d965acee4cfcbc4160dd39fd9a67e7a89 Mon Sep 17 00:00:00 2001 From: Ivana Varekova Date: Mon, 5 Feb 2007 12:06:55 +0000 Subject: [PATCH] fix -1 problem --- bzip2-1.0.4-bzip2recover.patch | 2 +- bzip2.spec | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bzip2-1.0.4-bzip2recover.patch b/bzip2-1.0.4-bzip2recover.patch index f254447..5e91a3b 100644 --- a/bzip2-1.0.4-bzip2recover.patch +++ b/bzip2-1.0.4-bzip2recover.patch @@ -6,7 +6,7 @@ - strcpy ( progName, argv[0] ); + strncpy ( progName, argv[0], BZ_MAX_FILENAME-1); -+ progName[BZ_MAX_FILENAME]="\0"; ++ progName[BZ_MAX_FILENAME-1]="\0"; inFileName[0] = outFileName[0] = 0; fprintf ( stderr, diff --git a/bzip2.spec b/bzip2.spec index 050270e..2296b52 100644 --- a/bzip2.spec +++ b/bzip2.spec @@ -1,7 +1,7 @@ Summary: A file compression utility Name: bzip2 Version: 1.0.4 -Release: 2%{?dist} +Release: 3%{?dist} License: BSD Group: Applications/File URL: http://sources.redhat.com/bzip2/ @@ -105,7 +105,7 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/*so %changelog -* Mon Feb 5 2007 Ivana Varekova 1.0.4-2 +* Mon Feb 5 2007 Ivana Varekova 1.0.4-3 - Resolves: 226979 Buffer overflow in bzip2's bzip2recover