elharo opened a new pull request, #401:
URL: https://github.com/apache/maven-shared-utils/pull/401

    at line 857 computes  without checking whether `sep` is longer than `str`. 
When `sep.length() > str.length()`, the start index is negative, throwing 
`StringIndexOutOfBoundsException`.
   
   **Fix:** Added  to the existing `if (str.length() == 0)` guard, returning 
`str` unchanged when the separator is longer than the string (since it can't 
possibly end with that separator).
   
   Fixes https://github.com/apache/maven-shared-utils/issues/400


-- 
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