farkhalit opened a new pull request, #435:
URL: https://github.com/apache/commons-cli/pull/435

   `Converter.DATE` parses with `SimpleDateFormat.parse(String)`, which stops 
at the first character it cannot use and ignores whatever follows, so a 
`Date`-typed option value like `Fri Jun 07 03:18:57 IST 2002 rm -rf /` returns 
a valid `Date` and the trailing text is dropped. That defeats the 
`setLenient(false)` strictness added in #430. Parse from an explicit 
`ParsePosition` and reject the value unless the whole string is consumed, 
keeping the `Locale.ENGLISH` fallback.


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