From c851b18e24deefef63bc210bf5178c368ea7fc5478b681c65a54cbc467609b35 Mon Sep 17 00:00:00 2001 From: andrea florio Date: Fri, 26 Mar 2010 10:13:54 +0000 Subject: [PATCH] Accepting request 35767 from Education:Salome:Factory Copy from Education:Salome:Factory/vtk via accept of submit request 35767 revision 11. Request was accepted with message: reviewed ok. OBS-URL: https://build.opensuse.org/request/show/35767 OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=18 --- vtk-5.4.2-string-len.patch | 12 ++++++++++++ vtk.changes | 8 ++++++++ vtk.spec | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 vtk-5.4.2-string-len.patch create mode 100644 vtk.changes 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.