diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-01-31 21:46:29 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-01-31 21:46:29 +0000 |
commit | 4e45ebb92c9708dffcd6c7d1890f0f2d696d1b54 (patch) | |
tree | f4076e3f6eed7f87aa650a6b6e1b4f315e45a03a /lld | |
parent | 8526e64beffdfadf6b9ab8d4557b2f0851908e57 (diff) | |
download | bcm5719-llvm-4e45ebb92c9708dffcd6c7d1890f0f2d696d1b54.tar.gz bcm5719-llvm-4e45ebb92c9708dffcd6c7d1890f0f2d696d1b54.zip |
Fix use after free.
llvm-svn: 149429
Diffstat (limited to 'lld')
-rw-r--r-- | lld/lib/Core/NativeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Core/NativeReader.cpp b/lld/lib/Core/NativeReader.cpp index cc61fc0dbce..0316a2e5bb3 100644 --- a/lld/lib/Core/NativeReader.cpp +++ b/lld/lib/Core/NativeReader.cpp @@ -409,7 +409,7 @@ llvm::error_code parseNativeObjectFileOrSTDIN(llvm::StringRef path, if ( ec ) return ec; - return parseNativeObjectFile(mb.get(), path, result); + return parseNativeObjectFile(mb.take(), path, result); } |