Kaydet (Commit) 396da96d authored tarafından Noel Grandin's avatar Noel Grandin

cid#1326117 Unchecked return value

Change-Id: Ieaa1875a8731b5339d4ebf032b3f724ff889903f
üst 06907141
...@@ -107,7 +107,10 @@ public final class PdbDecoder { ...@@ -107,7 +107,10 @@ public final class PdbDecoder {
// last record // last record
dis.reset(); dis.reset();
int len = dis.available() - recOffset[lastIndex]; int len = dis.available() - recOffset[lastIndex];
dis.skip(recOffset[lastIndex]); int nBytesToSkip = recOffset[lastIndex];
while (nBytesToSkip > 0) {
nBytesToSkip -= dis.skip(nBytesToSkip);
}
byte[] bytes = new byte[len]; byte[] bytes = new byte[len];
dis.readFully(bytes); dis.readFully(bytes);
recArray[lastIndex] = new Record(bytes, recAttrs[lastIndex]); recArray[lastIndex] = new Record(bytes, recAttrs[lastIndex]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment