The licensecheck package classifies license files and heuristically determines how well they correspond to known open source licenses.
BSD 3-Clause "New" or "Revised" License
452
stars
75
forks
source link
internal/match: fix panic at EOF when TraceDFA > 0 #36
Closed
jba closed 3 years ago
With TraceDFA > 0, Scan sometimes panics by indexing a slice with a negative value. This fixes the panic.
The fix is trivial: index the slice with a variable that was already adjusted non-negative for the purpose but not used.