Created attachment 768300 [details] fix buf overflow in *toname() Description of problem: uidtoname() and gidtoname() have possible buffer overflows. Version-Release number of selected component (if applicable): tree-1.6.0-7.fc19.x86_64 How reproducible: always Steps to Reproduce: 1. chgrp 111111 somefile.txt 2. tree -g . Actual results: *** buffer overflow detected ***: tree terminated Expected results: the tree listing Additional info: I'll attach a patch. A second or more set of eyeballs would be good. (I hit this while browsing the fedora iso... there's a squash file in there that has a huge gid.)
Thanks. I only changed the snprintf calls to use sizeof(buf).
tree-1.6.0-8.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/tree-1.6.0-8.fc19
Package tree-1.6.0-8.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing tree-1.6.0-8.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-12329/tree-1.6.0-8.fc19 then log in and leave karma (feedback).
Package tree-1.6.0-9.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing tree-1.6.0-9.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-12329/tree-1.6.0-9.fc19 then log in and leave karma (feedback).
tree-1.6.0-9.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.