tustvold commented on issue #1035:
URL: 
https://github.com/apache/datafusion-comet/issues/1035#issuecomment-2433540062

   I am trying to report that your codebase has a critical bug in its handling 
of memory, without causing unnecessary angst. Modifying buffers behind the back 
of the Rust compiler is undefined behaviour, and can trivially lead to out of 
bounds memory access... This is typically considered a serious security 
defect...
   
   > As you mentioned the doc of CometBuffer already documents the unsafe 
behavior
   
   CometBuffer does document that it has unsafe invariants, this isn't in and 
of itself an issue. Yes, it is unsound which Rust purist will complain about, 
but provided nothing uses it in a way that triggers undefined behaviour it 
isn't the end of the world. The problem is #1030 is an example where it is not 
being used in a manner that avoids undefined behaviour. This is what I think 
should be documented, highlighted, and arguably fixed.


-- 
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: github-unsubscr...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to