[Zucchini] Introduce rel32_finder

Desktop / Chromium - Etienne Pierre-Doray [chromium.org] - 7 August 2017 20:02 EDT

This CL adds RelFinder base class, used to scan for rel32 pointer, and related implementations:- Rel32FinderIntel groups common code for x86 / x64- Rel32FinderX86- Rel32FinderX64 In addition, Abs32CollisionDetector is introduced, which is often used along with Rel32Finder to filter-out rel32 pointer based on collisions with abs32 pointers.

Bug: 729154 Change-Id: I73137e6ead0a2c5e30cf99a2985cc4836748a450 Reviewed-on: https://chromium-review.googlesource.com/590087 Commit-Queue: Etienne Pierre-Doray

e33c862 [Zucchini] Introduce rel32_finder.
chrome/installer/zucchini/BUILD.gn | 3 +
chrome/installer/zucchini/README.md | 12 +-
chrome/installer/zucchini/buffer_view.h | 7 +
chrome/installer/zucchini/rel32_finder.cc | 137 ++++++++
chrome/installer/zucchini/rel32_finder.h | 189 +++++++++++
chrome/installer/zucchini/rel32_finder_unittest.cc | 350 +++++++++++++++++++++
6 files changed, 697 insertions(+), 1 deletion(-)

Upstream: git.chromium.org


  • Share