-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate false positive causes panic #30
Labels
bug
Something isn't working
Comments
@quackduck With what string did this happen, so that I can replicate it on my end? |
I couldn't find the exact string but this has the same effect:
package main
import (
"github.com/TwiN/go-away"
"fmt"
)
var text = `pi@raspberrypi:~/Documents/devzat-bot $ yarn
yarn install v1.22.18
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.61s.
pi@raspberrypi:~/Documents/devzat-bot $ yarn start
yarn run v1.22.18
warning package.json: No license field
error Command "start" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
pi@raspberrypi:~/Documents/devzat-bot $`
func main() {
fmt.Println(goaway.Censor(text))
} |
TwiN
changed the title
goaway.go:178 panics: slice bounds out of range [457:451]
bug: Duplicate false positive causes panic
May 1, 2022
TwiN
changed the title
bug: Duplicate false positive causes panic
Duplicate false positive causes panic
May 1, 2022
Epic, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/TwiN/go-away/blob/master/goaway.go#L178
runtime error: slice bounds out of range [457:451]
The text was updated successfully, but these errors were encountered: