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 race in EscapedUnicode decoder #3031

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

rgmz
Copy link
Contributor

@rgmz rgmz commented Jul 1, 2024

Description:

This fixes one of the races mentioned in #3027.

There may be a better solution to this specific issue. My interpretation, validated by testing, is that sources.Chunk is being mutated and read in multiple places and needs to be cloned.

Checklist:

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

@dustin-decker dustin-decker merged commit 6d022e7 into trufflesecurity:main Sep 26, 2024
3 checks passed
@rgmz rgmz deleted the fix/decoder-race branch September 26, 2024 16:49
kashifkhan0771 pushed a commit to kashifkhan0771/trufflehog that referenced this pull request Oct 1, 2024
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.

2 participants