CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/exploits/CVE-2017-13861/liboffsetfinder64/patch.hpp
Views: 11784
1
//
2
// patch.hpp
3
// liboffsetfinder64
4
//
5
// Created by tihmstar on 09.03.18.
6
// Copyright © 2018 tihmstar. All rights reserved.
7
//
8
9
#ifndef patch_hpp
10
#define patch_hpp
11
12
#include "common.h"
13
#include <stdlib.h>
14
#include <string.h>
15
#include <stdio.h>
16
17
namespace tihmstar {
18
namespace patchfinder64{
19
20
class patch{
21
bool _slideme;
22
void(*_slidefunc)(class patch *patch, uint64_t slide);
23
public:
24
const loc_t _location;
25
const void *_patch;
26
const size_t _patchSize;
27
patch(loc_t location, const void *patch, size_t patchSize, void(*slidefunc)(class patch *patch, uint64_t slide) = NULL);
28
patch(const patch& cpy);
29
void slide(uint64_t slide);
30
~patch();
31
};
32
33
}
34
}
35
36
#endif /* patch_hpp */
37
38