[all-commits] [llvm/llvm-project] be556d: [lldb/Commands] Fix heap-use-after-free error in C...
Med Ismail Bennani via All-commits
all-commits at lists.llvm.org
Wed Aug 11 09:03:49 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: be556d5131d56f285e55b0548f3b953d55d055c4
https://github.com/llvm/llvm-project/commit/be556d5131d56f285e55b0548f3b953d55d055c4
Author: Med Ismail Bennani <medismail.bennani at gmail.com>
Date: 2021-08-11 (Wed, 11 Aug 2021)
Changed paths:
M lldb/source/Commands/CommandObjectProcess.cpp
Log Message:
-----------
[lldb/Commands] Fix heap-use-after-free error in CommandObjectProcess
This patch should fix the use-after-free error that was brought up by
the LLDB ASAN Green Dragon bot.
This is caused because the `StringRef` object was acquired too early
before being use and by the underlying memory was modified which caused
it to point to null memory.
Fetching back the string reference close to its usage location should
fix the issue.
Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>
More information about the All-commits
mailing list