do not bail when XLS properies cannot be parsed

This commit is contained in:
SheetJS 2024-07-17 14:22:58 -04:00
parent 8a7cfd47bd
commit b61eed74fc
2 changed files with 2 additions and 3 deletions

@ -627,14 +627,14 @@ function parse_xls_props(cfb/*:CFBContainer*/, props, o) {
if(DSI && DSI.size > 0) try {
var DocSummary = parse_PropertySetStream(DSI, DocSummaryPIDDSI, PSCLSID.DSI);
for(var d in DocSummary) props[d] = DocSummary[d];
} catch(e) {if(o.WTF) throw e;/* empty */}
} catch(e) {if(o.WTF) console.error(e && e.message || e);}
/* [MS-OSHARED] 2.3.3.2.1 Summary Information Property Set*/
var SI = CFB.find(cfb, '/!SummaryInformation');
if(SI && SI.size > 0) try {
var Summary = parse_PropertySetStream(SI, SummaryPIDSI, PSCLSID.SI);
for(var s in Summary) if(props[s] == null) props[s] = Summary[s];
} catch(e) {if(o.WTF) throw e;/* empty */}
} catch(e) {if(o.WTF) console.error(e && e.message || e);}
if(props.HeadingPairs && props.TitlesOfParts) {
load_props_pairs(props.HeadingPairs, props.TitlesOfParts, props, o);

@ -690,7 +690,6 @@ apachepoi_15573.xls
apachepoi_1904DateWindowing.xls
apachepoi_19599-1.xls
apachepoi_19599-2.xls
apachepoi_22742.xls
apachepoi_24207.xls
apachepoi_24215.xls
apachepoi_25183.xls