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 invalid read detected by valgrind #3526

Merged
merged 2 commits into from
Nov 7, 2020
Merged

fix invalid read detected by valgrind #3526

merged 2 commits into from
Nov 7, 2020

Conversation

guolinke
Copy link
Collaborator

@guolinke guolinke commented Nov 4, 2020

to fix #3525

@guolinke
Copy link
Collaborator Author

guolinke commented Nov 4, 2020

/gha run r-valgrind

@@ -22,8 +22,13 @@ namespace LightGBM {
class LeafSplits {
public:
LeafSplits(data_size_t num_data, const Config* config)
:config_(config), num_data_in_leaf_(num_data), num_data_(num_data),
: deterministic_(false),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

/gha run r-valgrind

Copy link
Collaborator

Choose a reason for hiding this comment

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

looks like your changes fixed it!

https://github.com/microsoft/LightGBM/runs/1350825291?check_suite_focus=true

The only issues left there are the ones we already knew about as of #3443 , which we think are false positives.

@jameslamb
Copy link
Collaborator

Looks ok to me, but I don't think I'm qualified to give this a ✔️

@guolinke guolinke merged commit da6c6ea into master Nov 7, 2020
@jameslamb jameslamb mentioned this pull request Nov 7, 2020
@StrikerRUS StrikerRUS deleted the fix-invalid-read branch November 7, 2020 18:22
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[R-package] invalid read detected by valgrind
3 participants