file:list($path, true()) can produce infinite loops on some filesystems
Bug #1023862 reported by
Dennis Knochenwefel
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Paul J. Lucas |
Bug Description
in fs_util the next() function makes use of ::readdir and in particular d_type which is not supported by all file system types (cf readdir man page).
If d_type is not supported it will be set to DT_UNKNOWN also for the file system entries "." and "..". Consequently, these entries are not skipped and file:list will recursively infinitely list entries:
/.
/./.
/././.
/./././.
/././././.
/./././././.
.. etc
Related branches
lp:~zorba-coders/zorba/bug-1023862
- Dennis Knochenwefel: Approve
- Paul J. Lucas: Approve
-
Diff: 68 lines (+29/-8)1 file modifiedsrc/util/fs_util.cpp (+29/-8)
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
assignee: | Dennis Knochenwefel (dennis-knochenwefel) → Paul J. Lucas (paul-lucas) |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.