Skip to content

Fixed #2984: data.table forgot to cpoy before assign#3071

Merged
mattdowle merged 5 commits intomasterfrom
maybeReferencedFix
Sep 26, 2018
Merged

Fixed #2984: data.table forgot to cpoy before assign#3071
mattdowle merged 5 commits intomasterfrom
maybeReferencedFix

Conversation

@MarkusBonsch
Copy link
Copy Markdown
Contributor

@MarkusBonsch MarkusBonsch commented Sep 25, 2018

Closes #2984.
In very rare cases when variables were assigned to factor columns, an unintended assignment to the original variable took place. This has been fixed.

  • one existing test (430) modified. I believe this test was only for the warning and had a strange condition to pass (see code).
  • two new tests added

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 25, 2018

Codecov Report

Merging #3071 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3071      +/-   ##
==========================================
+ Coverage   90.86%   90.86%   +<.01%     
==========================================
  Files          61       61              
  Lines       11807    11808       +1     
==========================================
+ Hits        10728    10729       +1     
  Misses       1079     1079
Impacted Files Coverage Δ
src/assign.c 94.4% <100%> (ø) ⬆️

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 3b8cfce...66b475b. Read the comment docs.

@mattdowle mattdowle added this to the 1.11.8 milestone Sep 26, 2018
@mattdowle mattdowle merged commit ae25386 into master Sep 26, 2018
@mattdowle mattdowle deleted the maybeReferencedFix branch September 26, 2018 06:03
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.

data.table corrupts variables by failing to check NAMED before modifying a vector

2 participants