diff --git a/vtk-5.4.2-string-len.patch b/vtk-5.4.2-string-len.patch new file mode 100644 index 0000000..2ea92c1 --- /dev/null +++ b/vtk-5.4.2-string-len.patch @@ -0,0 +1,12 @@ +diff -uNr VTK-orig/Utilities/kwsys/SystemInformation.cxx VTK/Utilities/kwsys/SystemInformation.cxx +--- VTK-ori/Utilities/kwsys/SystemInformation.cxx 2009-02-12 16:08:15.000000000 +0100 ++++ VTK/Utilities/kwsys/SystemInformation.cxx 2010-03-25 11:34:27.197122890 +0100 +@@ -135,7 +135,7 @@ + void RunMemoryCheck(); + public: + #define VENDOR_STRING_LENGTH (12 + 1) +-#define CHIPNAME_STRING_LENGTH (48 + 1) ++#define CHIPNAME_STRING_LENGTH (61 + 1) + #define SERIALNUMBER_STRING_LENGTH (29 + 1) + + typedef struct tagID diff --git a/vtk.changes b/vtk.changes new file mode 100644 index 0000000..8f6f90d --- /dev/null +++ b/vtk.changes @@ -0,0 +1,8 @@ +------------------------------------------------------------------ +Thu Mar 25 11:50:35 CET 2010 - boris@steki.net + +- Extended buffer size in VTK/Utilities/kwsys/SystemInformation.cxx + to fix buffer overflow report from rpmlint + + + diff --git a/vtk.spec b/vtk.spec index f98b45a..4757bd3 100644 --- a/vtk.spec +++ b/vtk.spec @@ -9,6 +9,7 @@ Group: System/Libraries URL: http://www.vtk.org Source0: vtk-%{version}.tar.gz Patch0: vtk-5.4.2-pythondestdir.patch +Patch1: vtk-5.4.2-string-len.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: cmake tcl-devel tk-devel libqt4-devel python-devel @@ -90,6 +91,7 @@ Testing programs for VTK %prep %setup -n VTK -q %patch0 -p1 +%patch1 -p1 # Replace relative path ../../../VTKData with %{_datadir}/vtkdata # otherwise it will break on symlinks.