]> www.wagner.pp.ru Git - oss/catdoc.git/commitdiff
Fix ole name bug master
authorVictor Wagner <vitus@wagner.pp.ru>
Sat, 15 Nov 2025 08:46:59 +0000 (11:46 +0300)
committerVictor Wagner <vitus@wagner.pp.ru>
Sat, 15 Nov 2025 08:46:59 +0000 (11:46 +0300)
Fix debian bug 874048

src/ole.c

index dbcda42d71335ca8ba4d08bb60c6a3f496e47156..b89d5eb8fa24ed2280ee08716d521da0aa14929d 100644 (file)
--- a/src/ole.c
+++ b/src/ole.c
@@ -337,7 +337,7 @@ FILE *ole_readdir(FILE *f) {
        e->blocks=NULL;
 
        nLen=getshort(oleBuf,0x40);
-       if (nLen > OLENAMELENGTH) {
+       if (nLen > OLENAMELENGTH * 2) {
                free(e);
                return NULL;
        }