Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Fixed unsoundness of #derive(Clone) for FFI structs #882

Merged
merged 1 commit into from
Mar 4, 2022
Merged

Conversation

jorgecarleitao
Copy link
Owner

The implementation is not sound as it allows for double-free if someone clones the struct.

Closes #880

@jorgecarleitao jorgecarleitao added the bug Something isn't working label Mar 4, 2022
@codecov
Copy link

codecov bot commented Mar 4, 2022

Codecov Report

Merging #882 (5f8e17b) into main (a87c758) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #882   +/-   ##
=======================================
  Coverage   71.67%   71.68%           
=======================================
  Files         335      335           
  Lines       18205    18205           
=======================================
+ Hits        13049    13050    +1     
+ Misses       5156     5155    -1     
Impacted Files Coverage Δ
src/compute/arithmetics/time.rs 26.60% <0.00%> (+0.91%) ⬆️

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 a87c758...5f8e17b. Read the comment docs.

@jorgecarleitao jorgecarleitao changed the title Fixed unsoundness of derive[Clone] for FFI structs Fixed unsoundness of #derive(Clone) for FFI structs Mar 4, 2022
@jorgecarleitao jorgecarleitao merged commit 9d4342c into main Mar 4, 2022
@jorgecarleitao jorgecarleitao deleted the unsound branch March 4, 2022 18:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloning ArrowArray causes segfault on drop.
1 participant