You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "tustvold (via GitHub)" <gi...@apache.org> on 2023/03/25 22:54:31 UTC

[GitHub] [arrow-rs] tustvold opened a new issue, #3942: I256 Checked Subtraction Overflows for i256::MINUS_ONE

tustvold opened a new issue, #3942:
URL: https://github.com/apache/arrow-rs/issues/3942

   **Describe the bug**
   <!--
   A clear and concise description of what the bug is.
   -->
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   ```
   i256::from_parts(0, i128::MAX).checked_sub(i256::MINUS_ONE).unwrap();
   ```
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   Shouldn't panic
   
   **Additional context**
   <!--
   Add any other context about the problem here.
   -->


-- 
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-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow-rs] tustvold closed issue #3942: I256 Checked Subtraction Overflows for i256::MINUS_ONE

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold closed issue #3942: I256 Checked Subtraction Overflows for i256::MINUS_ONE
URL: https://github.com/apache/arrow-rs/issues/3942


-- 
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-unsubscribe@arrow.apache.org

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


[GitHub] [arrow-rs] tustvold commented on issue #3942: I256 Checked Subtraction Overflows for i256::MINUS_ONE

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #3942:
URL: https://github.com/apache/arrow-rs/issues/3942#issuecomment-1483943700

   A similar issue can be seen with
   
   ```
   i256::from_parts(u128::MAX, i128::MIN)
               .checked_add(i256::from_parts(1, -1))
               .unwrap();
   ```


-- 
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-unsubscribe@arrow.apache.org

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