Index: testing/libfuzzer/fuzzers/courgette_fuzzer.cc |
diff --git a/testing/libfuzzer/fuzzers/courgette_fuzzer.cc b/testing/libfuzzer/fuzzers/courgette_fuzzer.cc |
index 5888db93eb2fe23b56ed96952b4b4bab96352987..fffb5b7d1480142e8b9decab2e2bb6dd321cc018 100644 |
--- a/testing/libfuzzer/fuzzers/courgette_fuzzer.cc |
+++ b/testing/libfuzzer/fuzzers/courgette_fuzzer.cc |
@@ -5,7 +5,8 @@ |
#include <stddef.h> |
#include <stdint.h> |
-#include "base/memory/scoped_ptr.h" |
+#include <memory> |
+ |
#include "courgette/assembly_program.h" |
#include "courgette/courgette.h" |
#include "courgette/encoded_program.h" |
@@ -13,12 +14,12 @@ |
// Entry point for LibFuzzer. |
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
- scoped_ptr<courgette::AssemblyProgram> prog; |
+ std::unique_ptr<courgette::AssemblyProgram> prog; |
courgette::Status status = |
courgette::ParseDetectedExecutable(data, size, &prog); |
if (status != courgette::C_OK) { |
return 0; |
} |
- scoped_ptr<courgette::EncodedProgram> enc_prog(prog->Encode()); |
+ std::unique_ptr<courgette::EncodedProgram> enc_prog(prog->Encode()); |
return 0; |
} |