[Bug 7058] New: ash will get segfault if the expend pathname length exceed 2048.

bugzilla at busybox.net bugzilla at busybox.net
Wed Apr 23 20:20:10 UTC 2014


https://bugs.busybox.net/show_bug.cgi?id=7058

           Summary: ash will get segfault if the expend pathname length
                    exceed 2048.
           Product: Busybox
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: frank.chen2 at baesystems.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Created attachment 5360
  --> https://bugs.busybox.net/attachment.cgi?id=5360
use 4096 buffer size, and check the expend before doing it.

The setup:
using perl under ash.

while true; do mkdir `perl -e 'print "A" x 255'`; cd A* || break; done
cd (to the top root directory)

issue:
ls A*/A*/A*/A*/A*/A*/A*/A*/A*  (deep 9, which pathname is more than 8x256)

shell will die for segfault.

I have the fix for us, which our PATH_MAX is 4096.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list