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
Try using go-diskfs to list the contents of the rr_moved directory in the above image.
Expected behavior
The directory appears empty because all directory entries have the RE system use entry.
Actual behavior
The directory does not appear empty. Go-diskfs misses some RE system use entries, which are 4 bytes in length, when they are the final entry in the system use field.
Go-diskfs can miss the final System Use Entry in a System Use Field or a Continuation Area if the final entry is 4 bytes long.
You can see an example of this in Openstep4-Pr1User.iso inside this archive: https://archive.org/download/NeXTOSIMAGES/NeXT_NEXTSTEP_4.0_PR1_(beta).rar.
Try using go-diskfs to list the contents of the rr_moved directory in the above image.
Expected behavior
The directory appears empty because all directory entries have the RE system use entry.
Actual behavior
The directory does not appear empty. Go-diskfs misses some RE system use entries, which are 4 bytes in length, when they are the final entry in the system use field.
The cause
This is likely due to a mistake on directoryentrysystemuseextension.go:514.
The line currently reads
I believe it should read
A four byte field would take up i+0, i+1, i+2, and i+3, so as long as i+3 is less then len(b), we should be able to read.
I made the same mistake in my own implementation, which is how I found this.
The text was updated successfully, but these errors were encountered: