diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2023-02-24 09:52:40 +0100 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2023-02-24 10:43:12 +0100 |
commit | f393e1f6b3b42e8f355e64e2fb479c571ab939bc (patch) | |
tree | e64cdaf84f01a06741f744e0bd88e408ab7d57f3 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | c4972d37290ff5ab1228ecfc7280bc07a9280f92 (diff) | |
download | llvm-f393e1f6b3b42e8f355e64e2fb479c571ab939bc.zip llvm-f393e1f6b3b42e8f355e64e2fb479c571ab939bc.tar.gz llvm-f393e1f6b3b42e8f355e64e2fb479c571ab939bc.tar.bz2 |
[clangd] Fix UB in scanPreamble
getMemBufferCopy triggers an UB when it receives a default constructed
StringRef. Make sure that we're always passing the null-terminated string
created in ParseInputs throughout the scanPreamble.
Differential Revision: https://reviews.llvm.org/D144708
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions