diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-25 15:02:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-25 15:41:01 +0000 |
commit | 10db9232eaab2c53e84a7521e3f55579ce0c1bef (patch) | |
tree | 7964f4a640816c6cdce5e848c1806a1e58bd0361 /xmerge | |
parent | d6a3c5786b836c6b776c54c949e0cf6cb081a7e5 (diff) |
coverity#1326117 Unchecked return value
Change-Id: I448f59fd43d90d3ad42ba55dbadee0664984e53a
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PdbDecoder.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PdbDecoder.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PdbDecoder.java index 3518feb29931..b3fbd4df0854 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PdbDecoder.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PdbDecoder.java @@ -97,7 +97,10 @@ public final class PdbDecoder { //dis.seek(recOffset[i]); dis.reset(); - dis.skip(recOffset[i]); + int nBytesToSkip = recOffset[i]; + while (nBytesToSkip > 0) { + nBytesToSkip -= dis.skip(nBytesToSkip); + } int len = recOffset[i+1] - recOffset[i]; byte[] bytes = new byte[len]; dis.readFully(bytes); @@ -122,4 +125,4 @@ public final class PdbDecoder { return pdb; } -}
\ No newline at end of file +} |