diff options
author | bloodstalker <thabogre@gmail.com> | 2018-02-01 09:41:13 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-02-01 09:41:13 +0000 |
commit | bb36d843120d0f30c8930c0cf430e265b0374f25 (patch) | |
tree | 6e8b1e3406472c06c4d10ee9e79502fcb864d3b5 /bruiser/executioner.h | |
parent | fixed string type for xobjs, also xcall can now call functions by name as well (diff) | |
download | mutator-bb36d843120d0f30c8930c0cf430e265b0374f25.tar.gz mutator-bb36d843120d0f30c8930c0cf430e265b0374f25.zip |
update
Diffstat (limited to 'bruiser/executioner.h')
-rw-r--r-- | bruiser/executioner.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bruiser/executioner.h b/bruiser/executioner.h index 4793915..3fe0fac 100644 --- a/bruiser/executioner.h +++ b/bruiser/executioner.h @@ -332,7 +332,17 @@ class Arguary { class XGlobals { public: XGlobals() {} - ~XGlobals() {} + ~XGlobals() { + for (auto &iter : globals) free(iter.first); + } + + void reserve(size_t size) { + globals.push_back(std::make_pair(malloc(size), size)); + } + + void* getAddressByIndex(int index) { + } + private: std::list<std::pair<void*, size_t>> globals; }; |