Description of problem: When passing a particular length of path to dos2unix we get a segmentation fault. Version-Release number of selected component (if applicable): 3.1 How reproducible: In certain cases...I reproduce it with a pathname of length=63 without the trailing '/' Steps to Reproduce: 1. 2. 3. Actual results: dos2unix: converting file /home/danielc/1234567891123456789212345678931234567894123456789/bob.tmp to UNIX format ... fname_len=76 (path + /d2utmpXXXXXX) Segmentation fault Expected results: no segmentation fault :) Additional info: see patch
Created attachment 126572 [details] Patch missing a "+1" in : fname_len = strlen(dir) + strlen("/d2utmpXXXXXX") + 1;
*** Bug 186491 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 150277 ***