Skip to content

Conversation

@stelfrag
Copy link
Collaborator

Summary
  • Allocate enough elements in the vector to prevent buffer overflow
  • Add check to ensure we have at least 2 data points (ml_kmeans_train)

@github-actions github-actions bot added the area/ml Machine Learning Related Issues label Oct 16, 2025
@stelfrag stelfrag marked this pull request as ready for review October 16, 2025 07:42
@stelfrag stelfrag requested a review from vkalintiris as a code owner October 16, 2025 07:42
Copy link
Contributor

@thiagoftsm thiagoftsm left a comment

Choose a reason for hiding this comment

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

After compile this PR, no issue was reported locally.. LGTM!

@stelfrag stelfrag merged commit d22056f into netdata:master Oct 16, 2025
114 of 115 checks passed
@stelfrag stelfrag deleted the fix_ml_crash1 branch October 16, 2025 13:04
stelfrag added a commit to stelfrag/netdata that referenced this pull request Oct 27, 2025
@stelfrag stelfrag mentioned this pull request Oct 27, 2025
Ferroin pushed a commit that referenced this pull request Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ml Machine Learning Related Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants