File: 06-Fix_OLENAMELENGTH.patch

package info (click to toggle)
catdoc 1%3A0.95-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,456 kB
  • sloc: ansic: 3,920; sh: 327; tcl: 262; makefile: 188
file content (17 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fixes opening many Libreoffice documents.
Bug-Debian: https://bugs.debian.org/874048
Forwarded: no
Author: Robert Zavalczki <robert.zavalczki@gmail.com>
Last-Update: 2017-09-13

--- a/src/ole.c
+++ b/src/ole.c
@@ -342,7 +342,7 @@
 	e->blocks=NULL;
 
 	nLen=getshort(oleBuf,0x40);
-	if (nLen > OLENAMELENGTH) {
+	if (nLen > OLENAMELENGTH * 2) {
 		free(e);
 		return NULL;
 	}