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 memcheck read error in libcudf contiguous_split #9067

Merged

Conversation

davidwendt
Copy link
Contributor

@davidwendt davidwendt commented Aug 18, 2021

Reference #8883

The cudf::contiguous_split was failing on memcheck using the compute-sanitizer with a 4-byte out-of-bounds read. This was traced to the copy_buffer device function that was reading 1 past the end of the input buffer when performing a value-shift. The ternary check was incorrectly protecting the out-of-bounds read. The logic is corrected by this PR.

Also, I fixed some const removal casts from the same source file by adding appropriate const qualifiers to the input data variables.

@davidwendt davidwendt added bug Something isn't working 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change labels Aug 18, 2021
@davidwendt davidwendt self-assigned this Aug 18, 2021
@codecov
Copy link

codecov bot commented Aug 18, 2021

Codecov Report

❗ No coverage uploaded for pull request base (branch-21.10@04b7027). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             branch-21.10    #9067   +/-   ##
===============================================
  Coverage                ?   10.71%           
===============================================
  Files                   ?      114           
  Lines                   ?    19100           
  Branches                ?        0           
===============================================
  Hits                    ?     2046           
  Misses                  ?    17054           
  Partials                ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04b7027...3ba38b8. Read the comment docs.

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Aug 19, 2021
@davidwendt davidwendt marked this pull request as ready for review August 19, 2021 15:54
@davidwendt davidwendt requested a review from a team as a code owner August 19, 2021 15:54
@davidwendt
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit e42464c into rapidsai:branch-21.10 Aug 23, 2021
@davidwendt davidwendt deleted the bug-memcheck-contiguous-split branch August 23, 2021 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants