You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "Xuanwo (via GitHub)" <gi...@apache.org> on 2024/10/24 11:47:41 UTC

[I] bug: UB inside `opendal_compat` [opendal]

Xuanwo opened a new issue, #5239:
URL: https://github.com/apache/opendal/issues/5239

   ### Describe the bug
   
   `opendal_compat` depends on `transmute` to perform conver between structs.
   
   But based on discussion happened at https://rust-lang.github.io/unsafe-code-guidelines/layout/structs-and-tuples.html and https://www.notion.so/xuanwospace/Inbox-1185e01178f980a3b7fadc9d0c1b54d2?pvs=4#1295e01178f9802f8c0fdc38c2b2fcae
   
   It's really UB and results many unexplained bug. It's better to remove all transmute and replace with `from/into`.
   
   ### Steps to Reproduce
   
   Perform `list` over `opendal_v0_49`
   
   ### Expected Behavior
   
   All operations should work as expected.
   
   ### Additional Context
   
   _No response_
   
   ### Are you willing to submit a PR to fix this bug?
   
   - [ ] Yes, I would like to submit a PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] bug: UB inside `opendal_compat` [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo closed issue #5239: bug: UB inside `opendal_compat`
URL: https://github.com/apache/opendal/issues/5239


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org