Giter Site home page Giter Site logo

Comments (7)

rjohnsondev avatar rjohnsondev commented on August 27, 2024 1

So this looks like it is caused by java padding larger data types with set bits if the value of the smaller data type has the most significant bit set. ie:

    System.out.println(((int)(byte)0xFF) == 0xffffffff); // true
    System.out.println(((int)(byte)0xFF) < 0); // true

this should do the trick: ebd1d8d

If you are able to confirm that this work for you @jvanvalkenburgh, let me know and I'll merge the branch.

from java-libpst.

pineapplemachine avatar pineapplemachine commented on August 27, 2024

I unfortunately do not have an environment set up to check for myself, but it seems plausible that the failure could be occurring here as a result of an integer overflow in the seek method, which might be resolved by replacing all occurrences of int in PSTByteFileContent.java with long. (Though that seems doubtful, given that the maximum size of an array in Java appears to be less than the highest representable value using an int.) Perhaps it's possible that not all of the data is being correctly stored in the array, or that some data is being stored incorrectly?

from java-libpst.

rjohnsondev avatar rjohnsondev commented on August 27, 2024

okay, I think I've been able to replicate; will let you know what I find.

from java-libpst.

pineapplemachine avatar pineapplemachine commented on August 27, 2024

Java just keeps on surprising me with its bizarre design decisions

from java-libpst.

jvanvalkenburgh avatar jvanvalkenburgh commented on August 27, 2024

Thank you so much! Indeed this fixed the issue, and now the results are the same regardless of constructor method.
I really appreciate the rapid help, and my thanks for an excellent library. Regards, Jason

from java-libpst.

weyndahir avatar weyndahir commented on August 27, 2024

this is a great work, I have quick question I am not seeing in your code the exchange server properties how you connecting the server?

from java-libpst.

rawadmarji avatar rawadmarji commented on August 27, 2024

can we have a new release to fix this issue

from java-libpst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.