diff options
author | crr0004 <crr0004@gmail.com> | 2021-04-07 12:31:41 +0200 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2021-04-07 12:32:33 +0200 |
commit | 43637c0dfeebcf4a4fcbb331f1094662e8882430 (patch) | |
tree | 64f3ef68f5288a837c6589468db043cdad038d43 /clang/lib/Basic/SourceManager.cpp | |
parent | f37ea62e57b5e0e7b52102a2254288e205bfef89 (diff) | |
download | llvm-43637c0dfeebcf4a4fcbb331f1094662e8882430.zip llvm-43637c0dfeebcf4a4fcbb331f1094662e8882430.tar.gz llvm-43637c0dfeebcf4a4fcbb331f1094662e8882430.tar.bz2 |
Fix crash when an invalid URI is parsed and error handling is attempted
When you pass in a payload with an invalid URI in a build with assertions enabled, it will crash.
Consuming the error from the failed URI parse prevents the error.
The crash is caused by the [llvm::expected](https://llvm.org/doxygen/classllvm_1_1Expected.html) having protection around trying to deconstruct without consuming the error first.
Reviewed By: kadircet
Differential Revision: https://reviews.llvm.org/D99872
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions