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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to