Comments (7)
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.
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.
okay, I think I've been able to replicate; will let you know what I find.
from java-libpst.
Java just keeps on surprising me with its bizarre design decisions
from java-libpst.
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.
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.
can we have a new release to fix this issue
from java-libpst.
Related Issues (20)
- Is this project still maintained? HOT 3
- Subject: Feature Request - Delete Email Messages in java-libpst
- PSTFolder::getNextChild exceptions leave PSTFolder in unadvanceable state
- Mark email as Read
- Just max 28 entries in console.log
- How to build in maven HOT 1
- getRTFBody() does not render special characters (öüäéèà" etc.)
- NullPointerException in (PSTAttachment.java:75)
- get .msg
- subset data from large PST and write new PST
- Need method : 1) To move messages from one folder to another 2) To delete messages
- If number of emails/messages reaches 23 in a folder: getNextChild throws Index out of bound error
- Cant get the mail adrres when sended mail with name not mail addres
- Can only read e-mails until 1 year back of PST generated date HOT 1
- EntryId of PSTMessage
- Contribution to this project
- multi threading
- PST files 4gb or more - exception in PSTFile HOT 6
- mail format
- Method to return body text in case of html email HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-libpst.