summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-03-16 04:39:38 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-03-16 04:39:38 +0000
commitc9daaaedb67e1e0265f795f8a9cbad6bc9553883 (patch)
treec74b0275504b2e8b50bbcd69da6032249894f0b0 /lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py
parent7865b2e9439839cdb354cae848038def79826796 (diff)
downloadbcm5719-llvm-c9daaaedb67e1e0265f795f8a9cbad6bc9553883.tar.gz
bcm5719-llvm-c9daaaedb67e1e0265f795f8a9cbad6bc9553883.zip
Reapply: [VFS] Add support for handling path traversals
This is originally r261551, reverted because of windows bots failing on unittests. Change the current behavior to do not handle path traversals on windows. Handle ".", ".." and "./" with trailing slashes while collecting files to be dumped into the vfs overlay directory. Include the support for symlinks into components. Given the path: /install-dir/bin/../lib/clang/3.8.0/include/altivec.h, if "bin" component is a symlink, it's not safe to use `path::remove_dots` here, and `realpath` is used to get the right answer. Since `realpath` is expensive, we only do it at collecting time (which only happens during the crash reproducer) and cache the base directory for fast lookups. Overall, this makes the input to the VFS YAML file to be canonicalized to never contain traversal components. Differential Revision: http://reviews.llvm.org/D17104 rdar://problem/24499339 llvm-svn: 263617
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud