Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/libs
In directory 
sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv18783/10.3/unstable/main/finkinfo/libs

Modified Files:
        wv2.info 
Added Files:
        wv2.patch 
Log Message:
security update

--- NEW FILE: wv2.patch ---

--- wv2-0.2.2/src/word_helper.h 2004-05-09 15:53:27.000000000 -0400
+++ wv2-0.2.2-new/src/word_helper.h     2006-06-15 14:55:47.000000000 -0400
@@ -552,8 +552,12 @@
             const U8 tmp = m_fkp.m_rgb[ m_index ].offset;
             // Now we have to calculate the real offset and then locate it
             // within our cached array...
-            if ( tmp != 0 )
-                return &m_fkp.m_fkp[ tmp * 2 - m_fkp.m_internalOffset ];
+            if ( tmp != 0 ) {
+                const int pos = tmp * 2 - m_fkp.m_internalOffset;
+                if (pos < 0 || pos >= 511 - m_fkp.m_internalOffset)
+                    return 0;
+                return &m_fkp.m_fkp[ pos ];
+            }
         }
         return 0;
     }

Index: wv2.info
===================================================================
RCS file: /cvsroot/fink/dists/10.3/unstable/main/finkinfo/libs/wv2.info,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- wv2.info    1 Jun 2006 16:02:11 -0000       1.12
+++ wv2.info    15 Jun 2006 19:16:04 -0000      1.13
@@ -1,6 +1,6 @@
 Package: wv2
 Version: 0.2.2
-Revision: 25
+Revision: 26
 Description: MSWord parsing library
 License: LGPL
 Maintainer: Benjamin Reed <[EMAIL PROTECTED]>
@@ -12,6 +12,7 @@
 
 Source: mirror:sourceforge:wvware/%n-%v.tar.bz2
 Source-MD5: d05318852b6c599270c7e0376834c413
+Patch: %n.patch
 PatchScript: perl -pi -e 's,-pedantic,,g' configure
 
 SetLIBS: -L%p/lib



_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to