Commit 8d68f70e authored by Nemanja Zbiljić's avatar Nemanja Zbiljić Committed by GitHub

Compare address sizes when trying to check if file (#1080)

parent 24c9ebcb
......@@ -281,6 +281,11 @@ func (s *traversalService) checkIsFile(
return
}
// address sizes must match
if len(reference.Bytes()) != len(e.Reference().Bytes()) {
return
}
// NOTE: any bytes will unmarshall to addresses; we need to check metadata
// read metadata
......
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