[PATCH] D30915: Canonicalize the path provided by -fmodules-cache-path
Adrian Prantl via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 13 15:13:53 PDT 2017
aprantl created this revision.
This fixes lookup mismatches that could previously happen when the module cache path contained a '/./' component.
In combination with https://reviews.llvm.org/D28299 this bug can cause a use-after-free.
rdar://problem/30413458
https://reviews.llvm.org/D30915
Files:
lib/Frontend/CompilerInvocation.cpp
test/Modules/Inputs/outofdate-rebuild/AppKit.h
test/Modules/Inputs/outofdate-rebuild/Cocoa.h
test/Modules/Inputs/outofdate-rebuild/CoreText.h
test/Modules/Inputs/outofdate-rebuild/CoreVideo.h
test/Modules/Inputs/outofdate-rebuild/Foundation.h
test/Modules/Inputs/outofdate-rebuild/module.modulemap
test/Modules/modules-cache-path-canonicalization.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30915.91628.patch
Type: text/x-patch
Size: 5302 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170313/51445ba6/attachment.bin>
More information about the cfe-commits
mailing list