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: avoid out of range error with long profile names #1272

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jeloba
Copy link

@jeloba jeloba commented Dec 18, 2024

Long profile names, such as test-with-native-agent may cause string length overruns on short properties.

This introduces a check to avoid that.

Long profile names, such as `test-with-native-agent` may cause string length overruns on short properties.

This introduces a check to avoid that.
Copy link
Member

@radcortez radcortez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind creating a test for this? Thank you!

@jeloba
Copy link
Author

jeloba commented Dec 20, 2024

@radcortez added a test. Before the change it would throw an out of bound exception, not it passes.

@jeloba jeloba requested a review from radcortez December 20, 2024 16:14
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