Actions
Bug #6043
closedA zero-length command line argument causes an index out-of-bounds exception
Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2023-05-22
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
11, 12, trunk
Fix Committed on Branch:
11, 12, trunk
Description
If you conspire to pass a zero length string to net.sf.saxon.Transform
as a command line argument, we throw an index out-of-bounds exception.
(How, exactly, you do this is perhaps platform dependent, but it appears that on Windows at least java "" ...
will result in a zero length string being passed as an argument.)
Then the question is, how should we react to this argument? Ignore it, or reject it and print the usage message? I'm leaning towards the latter.
Please register to edit this issue
Actions