Tcl_AppendResult not NULL-terminated in fs-traverse.c
|Reported by:||sfiera@…||Owned by:||eridius@…|
|Keywords:||fs-traverse Tcl_AppendResult||Cc:||eridius@…, sfiera@…|
I was just trying to traverse a list of directories using fs-traverse. I have since realized that fs-traverse will not handle a list of directories. However, rather than failing gracefully and reporting that the requested directory didn't exist, it was crashing with a bus error. I traced this problem back to the invocations of Tcl_AppendResult in fs-traverse.c, which are used to report errors.
According to its manpage, Tcl_AppendResult takes a NULL-terminated list of strings. The invocations in fs-traverse.c didn't do this. I've patched it; however, although fs-traverse doesn't have a "maintainer," I'll defer to Eridius on committing it since it's his creation.
Change History (6)
Changed 10 years ago by sfiera@…
comment:1 Changed 10 years ago by eridius@…
- Resolution set to fixed
- Status changed from new to closed
comment:4 Changed 9 years ago by nox@…
- Cc changed from firstname.lastname@example.org,email@example.com to firstname.lastname@example.org, email@example.com
- Priority changed from Important to High