View | Details | Raw Unified | Return to bug 44857
Collapse All | Expand All

(-)dist/src/java/org/apache/poi/ddf/EscherMetafileBlip.java.orig (-2 / +4 lines)
Lines 83-90 Link Here
83
        field_6_fCompression = data[pos]; pos++;
83
        field_6_fCompression = data[pos]; pos++;
84
        field_7_fFilter = data[pos]; pos++;
84
        field_7_fFilter = data[pos]; pos++;
85
85
86
        raw_pictureData = new byte[field_5_cbSave];
86
        // XXX: Trusting field_5_cbSave results in inconsistent record size.
87
        System.arraycopy( data, pos, raw_pictureData, 0, field_5_cbSave );
87
        int remainingBytes = bytesAfterHeader - 50;
88
        raw_pictureData = new byte[remainingBytes];
89
        System.arraycopy( data, pos, raw_pictureData, 0, remainingBytes );
88
90
89
        // 0 means DEFLATE compression
91
        // 0 means DEFLATE compression
90
        // 0xFE means no compression
92
        // 0xFE means no compression

Return to bug 44857