Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37549056
en ru br
ALT Linux repos
S:1.14.50-alt1
5.0: 1.14.13-alt1
4.1: 1.14.9-alt0.M41.1
4.0: 1.14.7-alt1
3.0: 1.10.1-alt1
+updates:1.10.1-alt1.M30.1

Group :: System/Libraries
RPM: libgsf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libgsf_CVE-2006-4514.patch
Download


===================================================================
RCS file: /cvs/gnome/libgsf/gsf/gsf-infile-msole.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- libgsf.orig/gsf/gsf-infile-msole.c	2006/09/06 20:39:46	1.73
+++ libgsf/gsf/gsf-infile-msole.c	2006/09/24 01:55:24	1.74
@@ -595,6 +595,13 @@
 			last = num_bat;
 		} else if (num_metabat > 0) {
 			metabat_block = metabat[last];
+			if (num_bat < last) {
+				/* ::num_bat and ::num_metabat are
+				 * inconsistent.  There are too many metabats
+				 * for the bat count in the header. */
+				ptr = NULL;
+				break;
+			}
 			num_bat -= last;
 		}
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin