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

Unified Diff: courgette/disassembler.cc

Issue 2055343002: Courgette: Add static method QuickDetect() to optimize program detection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 4 years, 5 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/disassembler.h ('k') | courgette/disassembler_elf_32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/disassembler.cc
diff --git a/courgette/disassembler.cc b/courgette/disassembler.cc
index baa3b1f8c780338f4750d63e8cbda29fb6e66d8b..9407f6dae6a871e06319b9ac3e0d77e86ba33d99 100644
--- a/courgette/disassembler.cc
+++ b/courgette/disassembler.cc
@@ -33,9 +33,9 @@ RVA Disassembler::RvaVisitor_Rel32::Get() const {
return *it_ + 4 + Read32LittleEndian(translator_.RVAToPointer(*it_));
}
-Disassembler::Disassembler(const void* start, size_t length)
+Disassembler::Disassembler(const uint8_t* start, size_t length)
: failure_reason_("uninitialized") {
- start_ = reinterpret_cast<const uint8_t*>(start);
+ start_ = start;
length_ = length;
end_ = start_ + length_;
};
« no previous file with comments | « courgette/disassembler.h ('k') | courgette/disassembler_elf_32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698