-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-7775: [Rust] fix: Don't let safe code arbitrarily transmute rea…
…ders and writers This code were quite clearly unsafe (which seems to be known, judging from the comment about it). As the functions appeared to callable indirectly from other public functions I changed these to just panic instead to keep the API. Closes #6256 from Marwes/unsafe_rust and squashes the following commits: 97e022a <Markus Westerlind> s/typ/type/g 9fe6ddf <Markus Westerlind> Remove unnecessary Send/Sync impls for RecordBatch d484e17 <Markus Westerlind> Better error message for typed conversion 66ce5b1 <Markus Westerlind> fix: Don't let safe code arbitrarily transmute readers and writers Authored-by: Markus Westerlind <markus.westerlind@distilnetworks.com> Signed-off-by: Chao Sun <sunchao@apache.org>
- Loading branch information
Showing
4 changed files
with
139 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters