https://bz.apache.org/bugzilla/show_bug.cgi?id=58562
Bug ID: 58562
Summary: Problems with protect record
Product: POI
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
Assignee: [email protected]
Reporter: [email protected]
I found there are some cases in which the protect, object protect, window
protect BIFF records can contain no data, In most case this happen when
protection is applied through vba routines with old Excel version.
I think must be considered the option to set the protection flag if record is
present but not contains data.
For example the org.apache.poi.hssf.record.ProtectRecord class can be patched
in this way:
public ProtectRecord(RecordInputStream in) {
this._options = 1;
try {
this._options = in.readShort();
} catch (RecordFormatException e) {
//System.out.println("Wrong Protect record found, set and skip check
");
}
}
or check for availability of data in RecordInputStream in.
Best Regards
Francesco Petruzzi
Information Security Manager
Innovery SpA
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]