38 this->invalidEntries = 0;
55 if (
entry->isValid()) {
60 this->invalidEntries++;
88 this->invalidEntries = 0;
91 if (!reloc)
return false;
95 size_t maxSize = reloc->SizeOfBlock;
101 if (!
entry->getPtr()) {
110 this->invalidEntries++;
114 this->parsedSize +=
sizeof(pe::BASE_RELOCATION_ENTRY);
115 this->
entries.push_back(entry);
122 if (this->invalidEntries > 0)
return false;
124 if (!parentDir)
return false;
126 if (!m_PE)
return false;
130 if (!
isOk)
return false;
138 if (this->parentDir ==
NULL)
return NULL;
140 if (!reloc)
return NULL;
165 this->cachedRaw =
raw;
181 if (!ptr)
return NULL;
187 this->cachedRaw =
raw;
193 if (this->parentDir ==
NULL)
return 0;
195 if (!reloc)
return 0;
197 if (reloc->SizeOfBlock > 0)
return reloc->SizeOfBlock;
205 if (!reloc)
return NULL;
208 case PAGE_VA:
return (
void*) &reloc->VirtualAddress;
209 case BLOCK_SIZE :
return (
void*) &reloc->SizeOfBlock;
223 case PAGE_VA:
return "Page RVA";
261 if (this->cachedMaxNum > 0)
return this->cachedMaxNum;
264 if (!reloc)
return 0;
286 if (!
getPtr())
return false;
290 if (!
isOk)
return false;
301 if (!
getPtr())
return true;
305 if (!
isOk)
return true;
307 if (
val == 0)
return true;
318 if (this->parentDir ==
NULL)
return NULL;
332 if (this->parentDir ==
NULL)
return 0;
345 return entry->Offset;
351 case 0 :
return "Padding (skipped)";
352 case 1 :
return "High WORD of 32-bit field";
353 case 2 :
return "Low WORD of 32-bit field";
354 case 3 :
return "32 bit field";
355 case 4 :
return "HighAdj";
356 case 5 :
return "MIPS JumpAddr";
357 case 6 :
case 7 :
return "Reserved";
358 case 9 :
return "MIPS16 JumpAddr";
359 case 10 :
return "64 bit field";
INT_TYPE _getNumValue(void *ptr)
const offset_t INVALID_ADDR
bufsize_t getDirEntrySize(bool trimToExeSize=false)
offset_t getDirEntryAddress()
virtual bufsize_t getFieldSize(size_t fieldId, size_t subField=FIELD_NONE)
virtual offset_t getFieldOffset(size_t fieldId, size_t subField=FIELD_NONE)
virtual offset_t getOffset()
virtual uint64_t getNumValue(size_t fieldId, size_t subField, bool *isOk)
virtual ExeNodeWrapper * getEntryAt(size_t fieldId)
std::vector< ExeNodeWrapper * > entries
BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
virtual offset_t getRawSize() const
virtual bufsize_t getImageSize()
virtual QString getFieldName(size_t fieldId)
virtual WrappedValue::data_type containsDataType(size_t fieldId, size_t subField)
virtual void * getFieldPtr(size_t fieldId, size_t subField=FIELD_NONE)
virtual QString getName()
virtual bufsize_t getSize()
size_t maxEntriesNumInBlock()
virtual Executable::addr_type containsAddrType(size_t fieldId, size_t subField)
IMAGE_BASE_RELOCATION * myReloc()
friend class RelocBlockWrapper
IMAGE_BASE_RELOCATION * reloc()
offset_t deltaToRVA(WORD delta)
static QString translateType(WORD type)
virtual bufsize_t getSize()
static WORD getDelta(WORD relocEntryVal)
static WORD getType(WORD relocEntryVal)