Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[rt.cpan.org #121103] Win32::Job->spawn doesn't search in last PATH entry

0 views
Skip to first unread message

jkahrman@mathworks.com via RT

unread,
Apr 13, 2017, 2:00:02 PM4/13/17
to libw...@perl.org
Thu Apr 13 13:44:47 2017: Request 121103 was acted upon.
Transaction: Ticket created by jkah...@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: jkah...@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.
0 new messages