You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JavaBinarySerializer.readExternal ignores ObjectInput.read return — partial reads corrupt records #4329
Affected version: 26.4.2 (confirmed still present in 26.5.1) Component:com.arcadedb.serializer.JavaBinarySerializer
Summary
ObjectInput.read(byte[]) is allowed to return fewer than the array length; the documented "fill the buffer" method is readFully.
ArcadeDB calls in.read(array) and ignores the return.
finalbyte[] array = newbyte[propertySize];
in.read(array); // may return short
Impact
Short reads (rare but possible across compressed / networked inputs) produce garbage property bytes; the next property is read from the wrong offset, corrupting the whole record. Compounds with #9.
Activity
fix(#4329): use readFully instead of read in JavaBinarySerializer.rea…
fix(#4329): use readFully instead of read in JavaBinarySerializer.rea…
fix(ArcadeData#4329): use readFully instead of read in JavaBinarySeri…
fix(#4329): use readFully instead of read in JavaBinarySerializer.rea…