Fedora Account System
Red Hat Associate
Red Hat Customer
Created attachment 1284412 [details] patch which fixes the issue Description of problem: perl-Term-Completion does not handle spaces and tabs after the end of completed file very well. Version-Release number of selected component (if applicable): perl-Term-Completion-1.00-10.fc26 How reproducible: always Steps to Reproduce: 1. Enter file file? 2. /root[space][space][space][tab] 3. Ender file? /root substr outside of string at /usr/share/perl5/vendor_perl/Term/Completion.pm line 207, <STDIN> line 1. Use of uninitialized value $test in concatenation (.) or string at /usr/share/perl5/vendor_perl/Term/Completion.pm line 211, <STDIN> line 1. Actual results: Error message as shown in reproducer steps Expected results: No error Additional info: The error is caused when calculating the then length of substring to complete. In this case the length is negative, however it's accepted for completion as value of $add < 1 have boolean value of true. Accepting only positive values of $add fixes dais issue.
I confirm the bug. I forwarded it to upstream.
perl-Term-Completion-1.00-11.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b48da4a737
perl-Term-Completion-1.00-10.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6f3ff717a9
perl-Term-Completion-1.00-9.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f6fbb679e7
perl-Term-Completion-1.00-9.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f6fbb679e7
perl-Term-Completion-1.00-10.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6f3ff717a9
perl-Term-Completion-1.00-11.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-b48da4a737
perl-Term-Completion-1.00-11.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
perl-Term-Completion-1.00-9.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
perl-Term-Completion-1.00-10.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.