When called with no argument, the qualify() built-in function crashes the ooRexx interpreter.
say qualify()
(On Windows) qualify() BIF and (Stream) method will also return strange results without error indication, when Name is either the empty string or the total length of the current directory plus the length of name exceeds 260 characters
say .stream~new('')~qualify -- returns empty string w/o current directory
C:\Subdirectory>say qualify('x'~copies(250)) -- returns Name w/o current directory
REXX-ooRexx_4.2.0(MT)_64-bit 6.04 22 Feb 2014
Windows 7
Anonymous
Committed revision 10171.
The no-args crash is fixed. The two other reported issues still need to be addressed.
Fixed code with revision [r11173] - this also fixes the issues reported in [bugs:1408]
Added tests with revision [r11174]
Related
Commit: [r11173]
Commit: [r11174]
I see the 2nd problem still failing on v5.0.0 (r12488) (Windows 64-bit, oRexx 32-bit).
Run this to reproduce:
This works exactly as it should. Maximum path length on Windows is 259.