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
} while (cluster_number!=MAX_uint32_t&&clusters_read<number_of_clusters);
returncluster_number;
}
It takes in a buffer (the output variable), but no length of the buffer. So the method has no way to prevent itself from overflowing the buffer if things go wrong...
Also, it has no way to signal to the caller that it did overflow. We would need to fix both these things. Right now, I am getting page faults because of this:
Something is messing with the cluster linking, so it reads the same cluster over and over again, leading to the buffer being overflowed.
The text was updated successfully, but these errors were encountered:
This code is a bit too naïve:
chaos/servers/file_system/fat/clusters.c
Lines 75 to 100 in 97415f4
It takes in a buffer (the
output
variable), but no length of the buffer. So the method has no way to prevent itself from overflowing the buffer if things go wrong...Also, it has no way to signal to the caller that it did overflow. We would need to fix both these things. Right now, I am getting page faults because of this:
Something is messing with the cluster linking, so it reads the same cluster over and over again, leading to the buffer being overflowed.
The text was updated successfully, but these errors were encountered: