Skip to content

Commit

Permalink
Merge 3131488 into 7b2b9b0
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-vasile committed Dec 13, 2021
2 parents 7b2b9b0 + 3131488 commit 3022c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/magic/binary.go
Expand Up @@ -139,6 +139,6 @@ func Marc(raw []byte, limit uint32) bool {
}
}

// Field terminator is present.
return bytes.Contains(raw, []byte{0x1E})
// Field terminator is present in first 2048 bytes.
return bytes.Contains(raw[:min(2048, len(raw))], []byte{0x1E})
}

0 comments on commit 3022c25

Please sign in to comment.