wieseljonas / java-libpst

Automatically exported from code.google.com/p/java-libpst
1 stars 1 forks source link

Incorrect decoding of NameToIdMap #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following if statement at approximately line 137 in PSTFile.java:

    if (this.encryptionType == PSTFile.ENCRYPTION_TYPE_COMPRESSIBLE) {
        nameToIdByte = PSTObject.decode(nameToIdByte);
    }

should be inside the if (nameToIdByte.length == 0) { ... } block that's 
immediately above it.  The existing code ends up decoding the nameToIdByte 
array twice for some pst files.  This corrupts the nameToId map and some 
named strings can't be found.

Orin.

Original issue reported on code.google.com by orin.e...@gmail.com on 20 May 2010 at 11:53

GoogleCodeExporter commented 9 years ago
I've applied this change!!

Original comment by rjohnson...@gmail.com on 18 Jun 2010 at 3:25