mmustafasenoglu opened a new pull request, #2482:
URL: https://github.com/apache/age/pull/2482

   ## Summary
   
   Adds overflow/underflow detection for 64-bit integer arithmetic in agtype 
operations.
   
   ## Problem
   
   Integer arithmetic silently wraps around on overflow instead of raising an 
error:
   
   
   
   Both PostgreSQL and Neo4j reject these with errors.
   
   ## Fix
   
   Uses GCC/Clang  intrinsics to detect overflow in:
   -  (+)
   -  (-)
   -  (*)
   -  (unary -)
   -  (/)
   -  (%)
   
   Each raises  on overflow.
   
   ## Tests
   
   Added 6 regression tests covering each overflow case.
   
   Fixes #2471


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to