Thu Apr 13 13:44:47 2017: Request 121103 was acted upon. Transaction: Ticket created by jkahr...@mathworks.com Queue: Win32-Job Subject: Win32::Job->spawn doesn't search in last PATH entry Broken in: 0.02, 0.03, 0.04, 0.05 Severity: Important Owner: Nobody Requestors: jkahr...@mathworks.com Status: new Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=121103 >
If the first argument to Win32::Job->spawn doesn't have path separators, it is supposed to search the PATH looking for the executable. However, it won't search in the last PATH entry if the PATH doesn't end with a ';'. The problem is the use of "strchr(curr, ';');" in Job.xs. It returns a null pointer when the search value isn't found, and this case isn't handled.