chiark / gitweb /
util: be a bit safer in path_is_safe()
authorLennart Poettering <lennart@poettering.net>
Thu, 30 Apr 2015 17:44:10 +0000 (19:44 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 07:20:22 +0000 (08:20 +0100)
commit3a296a5fe6c06deb497b09ab29b8363761b2885d
tree4caabe3985c4ec64201a5b7be762aa97facc5c5d
parent3d6374dfb8b85537dfa4284a9f0dd87497c63cf7
util: be a bit safer in path_is_safe()

We should be more strict when verifying paths with path_is_safe() for
potentially dangerous constructs, and that includes lengths of
PATH_MAX-1 and larger. Be more accurate here.
src/shared/util.c