MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / isValidELF

Method isValidELF

KittyMemoryEx/KittyScanner.cpp:1010–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1008}
1009
1010bool ElfScannerMgr::isValidELF(uintptr_t elfBase) const
1011{
1012 if (!_pMem || !elfBase)
1013 return false;
1014
1015 char magic[4] = {0};
1016 return _pMem->Read(elfBase, magic, sizeof(magic)) && memcmp(magic, "\177ELF", 4) == 0;
1017}
1018
1019ElfScanner &ElfScannerMgr::getProgramElf()
1020{

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.80

Tested by

no test coverage detected