Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2189)

Unified Diff: courgette/ensemble.cc

Issue 1629703002: [Courgette] Refactor: Manage AssemblyProgram and EncodedProgram with scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix courgette_fuzzer in libfuzzer. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « courgette/encoded_program_unittest.cc ('k') | courgette/patch_generator_x86_32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/ensemble.cc
diff --git a/courgette/ensemble.cc b/courgette/ensemble.cc
index d5277a472d4ceade5246b61dcf4bf1718644f619..631dd12c920224e74913bfd06ce7104c78de4a32 100644
--- a/courgette/ensemble.cc
+++ b/courgette/ensemble.cc
@@ -8,7 +8,7 @@
#include <stdint.h>
#include "base/strings/string_number_conversions.h"
-
+#include "courgette/program_detector.h"
#include "courgette/region.h"
#include "courgette/simple_delta.h"
#include "courgette/streams.h"
@@ -41,11 +41,9 @@ Status Ensemble::FindEmbeddedElements() {
while (position < length) {
ExecutableType type;
size_t detected_length;
-
Status result = DetectExecutableType(start + position,
length - position,
&type, &detected_length);
-
if (result == C_OK) {
Region region(start + position, detected_length);
« no previous file with comments | « courgette/encoded_program_unittest.cc ('k') | courgette/patch_generator_x86_32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698