You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geaflow.apache.org by "SYaoJun (via GitHub)" <gi...@apache.org> on 2026/03/03 04:35:22 UTC

[I] Math.abs(Integer.MIN_VALUE) will overflow and return a negative value [geaflow]

SYaoJun opened a new issue, #758:
URL: https://github.com/apache/geaflow/issues/758

   **Describe the bug**
   
   
   [Substr.java](https://github.com/apache/geaflow/blob/main/geaflow/geaflow-dsl/geaflow-dsl-plan/src/main/java/org/apache/geaflow/dsl/udf/table/string/Substr.java#L34-L36)
   
   ```java
   if ((Math.abs(pos) > str.length())) {
       return str;
   }
   ```
   **Expected behavior**
   
   
   Math.abs(Integer.MIN_VALUE) will overflow
   return a negative value
   
   
   


-- 
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: issues-unsubscribe@geaflow.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@geaflow.apache.org
For additional commands, e-mail: issues-help@geaflow.apache.org