void-packages/srcpkgs/catdoc/patches/003-Fix_OLENAMELENGTH.patch
2018-10-04 23:46:53 -03:00

17 lines
385 B
Diff

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
--- src/ole.c
+++ 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;
}