Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main: consider an empty path component when combining a path and file…
… name combinePathAndFile takes two C strings. The first one PATH was used in an expression: path [strlen(path) - 1] . If PATH is an empty, this can cause a buffer overrun. This change adds a guard-condition for such processing. Inspired from the comment submitted by @itchyny in universal-ctags#2384.
- Loading branch information