Skip to content

Commit

Permalink
Added length check on complete name
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Jun 1, 2024
1 parent 5b06f86 commit 808af26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fcb/fcb.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ func (f *FCB) DoesMatch(name string) bool {
}
}

// If the name is too long that's a nope too
if len(name) > 8+3 {
return false
}

// Create a temporary FCB for the specified filename.
tmp := FromString(name)

Expand Down

0 comments on commit 808af26

Please sign in to comment.