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
The following method in wyfs.util.VirtualRoot.Entry is broken:
public OutputStream outputStream() {
lastModified = System.currentTimeMillis();
data = new byte[0];
// create an output stream which will automatically resize the given
// array.
return new OutputStream() {
private int pos = 0;
public void write(int b) {
if (pos >= data.length) {
data = Arrays.copyOf(data, (data.length + 1) * 2);
}
data[pos++] = (byte) b;
}
};
}
It's broken because it leaves empty bytes at the end of final array.
The text was updated successfully, but these errors were encountered:
The following method in
wyfs.util.VirtualRoot.Entry
is broken:It's broken because it leaves empty bytes at the end of final array.
The text was updated successfully, but these errors were encountered: