Skip to content
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

Fix out of bounds panic on openai detector #3316

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

zricethezav
Copy link
Collaborator

@zricethezav zricethezav commented Sep 23, 2024

Description:

Fixes #3314 by ensuring we don't access slice out of bounds

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@zricethezav zricethezav changed the title hit em w/ a min Fix out of bounds panic on openai detector Sep 23, 2024
@zricethezav zricethezav merged commit b78be6d into main Sep 23, 2024
12 checks passed
@zricethezav zricethezav deleted the fix-openai-panic branch September 23, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

panic: runtime error: slice bounds out of range [47:42]
2 participants