aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2023-02-24 09:52:40 +0100
committerKadir Cetinkaya <kadircet@google.com>2023-02-24 10:43:12 +0100
commitf393e1f6b3b42e8f355e64e2fb479c571ab939bc (patch)
treee64cdaf84f01a06741f744e0bd88e408ab7d57f3 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentc4972d37290ff5ab1228ecfc7280bc07a9280f92 (diff)
downloadllvm-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