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 potential overflow in promptenc arithmetic #138

Merged
merged 4 commits into from
Dec 13, 2023
Merged

Conversation

esimkowitz
Copy link
Member

@esimkowitz esimkowitz commented Dec 13, 2023

This fixes a potential integer overflow in how we calculate the buffer size for promptenc.EncryptData.

This introduces two new utilfns for detecting overflow when adding ints.

wavesrv/pkg/utilfn/utilfn.go Outdated Show resolved Hide resolved
@esimkowitz esimkowitz merged commit 96980b2 into main Dec 13, 2023
4 checks passed
@esimkowitz esimkowitz deleted the evan/codescan-fixes branch December 13, 2023 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants