diff --git a/_export_dir_wrapper_8cpp_source.html b/_export_dir_wrapper_8cpp_source.html index cd6c01a3..beda9e01 100644 --- a/_export_dir_wrapper_8cpp_source.html +++ b/_export_dir_wrapper_8cpp_source.html @@ -518,7 +518,7 @@ $(function(){ initResizable(false); });
ExportEntryWrapper::NAME_RVA
@ NAME_RVA
Definition ExportDirWrapper.h:61
ExportEntryWrapper::getForwarder
char * getForwarder()
Definition ExportDirWrapper.cpp:306
ExportEntryWrapper::getName
virtual QString getName()
Definition ExportDirWrapper.cpp:220
-
PEFile::isReproBuild
bool isReproBuild()
Definition PEFile.h:361
+
PEFile::isReproBuild
bool isReproBuild()
Definition PEFile.h:360
pe_util::forwarderNameLen
size_t forwarderNameLen(const char *ptr, size_t max_len)
Definition Util.cpp:116
pe_util::isStrLonger
bool isStrLonger(const char *inp, size_t maxLen)
Definition Util.cpp:38
diff --git a/_file_hdr_wrapper_8cpp_source.html b/_file_hdr_wrapper_8cpp_source.html index 7eaa6125..8ed8bd27 100644 --- a/_file_hdr_wrapper_8cpp_source.html +++ b/_file_hdr_wrapper_8cpp_source.html @@ -348,7 +348,7 @@ $(function(){ initResizable(false); });
FileHdrWrapper::translateCharacteristics
static QString translateCharacteristics(DWORD charact)
Definition FileHdrWrapper.cpp:60
PEElementWrapper::PEFile
friend class PEFile
Definition PENodeWrapper.h:19
PEElementWrapper::m_PE
PEFile * m_PE
Definition PENodeWrapper.h:17
-
PEFile::isReproBuild
bool isReproBuild()
Definition PEFile.h:361
+
PEFile::isReproBuild
bool isReproBuild()
Definition PEFile.h:360
util
Definition FileHdrWrapper.cpp:7
util::getDateString
QString getDateString(const quint64 timestamp)
Definition FileHdrWrapper.cpp:8
diff --git a/_ld_config_dir_wrapper_8h_source.html b/_ld_config_dir_wrapper_8h_source.html index a37060b5..b9555caf 100644 --- a/_ld_config_dir_wrapper_8h_source.html +++ b/_ld_config_dir_wrapper_8h_source.html @@ -285,7 +285,7 @@ $(function(){ initResizable(false); });
180
181 std::vector<ExeNodeWrapper*>* getSubEntriesList(size_t parentType)
182 {
-
183 std::map<uint32_t, std::vector<ExeNodeWrapper*> >::iterator itr = subEntriesMap.find(parentType);
+
183 auto itr = subEntriesMap.find((uint32_t)parentType);
184 if (itr == subEntriesMap.end()){
185 return NULL;
186 }
diff --git a/_p_e_file_8cpp_source.html b/_p_e_file_8cpp_source.html index 6fd6c0c9..ebaed7fd 100644 --- a/_p_e_file_8cpp_source.html +++ b/_p_e_file_8cpp_source.html @@ -964,23 +964,23 @@ $(function(){ initResizable(false); });
PEFileBuilder::build
virtual Executable * build(AbstractByteBuffer *buf)
Definition PEFile.cpp:31
PEFileBuilder::signatureMatches
virtual bool signatureMatches(AbstractByteBuffer *buf)
Definition PEFile.cpp:4
PEFile
Definition PEFile.h:45
-
PEFile::dataDirEntries
DataDirEntryWrapper * dataDirEntries[pe::DIR_ENTRIES_COUNT]
Definition PEFile.h:428
-
PEFile::m_peMutex
QMutex m_peMutex
Definition PEFile.h:429
+
PEFile::dataDirEntries
DataDirEntryWrapper * dataDirEntries[pe::DIR_ENTRIES_COUNT]
Definition PEFile.h:427
+
PEFile::m_peMutex
QMutex m_peMutex
Definition PEFile.h:428
PEFile::getMappedSize
virtual bufsize_t getMappedSize(Executable::addr_type aType)
Definition PEFile.cpp:298
PEFile::_createSectionView
BufferView * _createSectionView(SectionHdrWrapper *sec)
Definition PEFile.cpp:697
PEFile::getExportsMap
size_t getExportsMap(QMap< offset_t, QString > &entrypoints, Executable::addr_type aType=Executable::RVA)
Definition PEFile.cpp:708
-
PEFile::sects
SectHdrsWrapper * sects
Definition PEFile.h:425
-
PEFile::_getSecHdr
SectionHdrWrapper * _getSecHdr(size_t index) const
Definition PEFile.h:396
+
PEFile::sects
SectHdrsWrapper * sects
Definition PEFile.h:424
+
PEFile::_getSecHdr
SectionHdrWrapper * _getSecHdr(size_t index) const
Definition PEFile.h:395
PEFile::unbindImports
bool unbindImports()
Definition PEFile.cpp:676
PEFile::peDataDirOffset
offset_t peDataDirOffset()
Definition PEFile.cpp:286
PEFile::getEntryPoint
virtual offset_t getEntryPoint(Executable::addr_type addrType=Executable::RVA)
Definition PEFile.cpp:316
PEFile::_init
void _init(AbstractByteBuffer *v_buf)
Definition PEFile.cpp:116
PEFile::getMinSecRVA
offset_t getMinSecRVA()
Definition PEFile.cpp:273
-
PEFile::SectHdrsWrapper
friend class SectHdrsWrapper
Definition PEFile.h:431
-
PEFile::fHdr
FileHdrWrapper * fHdr
Definition PEFile.h:423
+
PEFile::SectHdrsWrapper
friend class SectHdrsWrapper
Definition PEFile.h:430
+
PEFile::fHdr
FileHdrWrapper * fHdr
Definition PEFile.h:422
PEFile::wrapDataDirs
bool wrapDataDirs()
Definition PEFile.cpp:193
-
PEFile::_getSecIndex
size_t _getSecIndex(SectionHdrWrapper *sec) const
Definition PEFile.h:391
-
PEFile::album
ResourcesAlbum * album
Definition PEFile.h:427
+
PEFile::_getSecIndex
size_t _getSecIndex(SectionHdrWrapper *sec) const
Definition PEFile.h:390
+
PEFile::album
ResourcesAlbum * album
Definition PEFile.h:426
PEFile::setEntryPoint
bool setEntryPoint(offset_t entry, Executable::addr_type aType)
Definition PEFile.cpp:331
PEFile::getRichHeaderBgn
pe::RICH_DANS_HEADER * getRichHeaderBgn(pe::RICH_SIGNATURE *sign)
Definition PEFile.cpp:217
PEFile::extendLastSection
SectionHdrWrapper * extendLastSection(bufsize_t addedSize)
Definition PEFile.cpp:620
@@ -991,11 +991,11 @@ $(function(){ initResizable(false); });
PEFile::WR_DOS_HDR
@ WR_DOS_HDR
Definition PEFile.h:49
PEFile::WR_SECTIONS
@ WR_SECTIONS
Definition PEFile.h:54
PEFile::WR_RICH_HDR
@ WR_RICH_HDR
Definition PEFile.h:50
-
PEFile::core
PECore core
Definition PEFile.h:420
+
PEFile::core
PECore core
Definition PEFile.h:419
PEFile::initDirEntries
void initDirEntries()
Definition PEFile.cpp:173
PEFile::wrap
virtual void wrap()
Definition PEFile.cpp:211
PEFile::getLastSection
SectionHdrWrapper * getLastSection()
Definition PEFile.h:191
-
PEFile::optHdr
OptHdrWrapper * optHdr
Definition PEFile.h:424
+
PEFile::optHdr
OptHdrWrapper * optHdr
Definition PEFile.h:423
PEFile::dumpSection
bool dumpSection(SectionHdrWrapper *sec, QString fileName)
Definition PEFile.cpp:661
PEFile::_getLastMapped
offset_t _getLastMapped(Executable::addr_type aType)
Definition PEFile.cpp:576
PEFile::rvaToRaw
virtual offset_t rvaToRaw(offset_t rva)
Definition PEFile.cpp:407
@@ -1004,13 +1004,13 @@ $(function(){ initResizable(false); });
PEFile::setVirtualSize
bool setVirtualSize(bufsize_t newSize)
Definition PEFile.cpp:360
PEFile::_canAddNewSection
bool _canAddNewSection()
Definition PEFile.cpp:494
PEFile::wrapCore
void wrapCore()
Definition PEFile.cpp:180
-
PEFile::SectionHdrWrapper
friend class SectionHdrWrapper
Definition PEFile.h:432
+
PEFile::SectionHdrWrapper
friend class SectionHdrWrapper
Definition PEFile.h:431
PEFile::getDataDirEntry
DataDirEntryWrapper * getDataDirEntry(pe::dir_entry eType)
Definition PEFile.cpp:441
-
PEFile::_getSecHdrAtOffset
SectionHdrWrapper * _getSecHdrAtOffset(offset_t offset, Executable::addr_type aType, bool recalculate=false, bool verbose=false)
Definition PEFile.h:401
+
PEFile::_getSecHdrAtOffset
SectionHdrWrapper * _getSecHdrAtOffset(offset_t offset, Executable::addr_type aType, bool recalculate=false, bool verbose=false)
Definition PEFile.h:400
PEFile::moveDataDirEntry
bool moveDataDirEntry(pe::dir_entry id, offset_t newOffset, Executable::addr_type addType=Executable::RAW)
Definition PEFile.cpp:458
PEFile::_getLastSection
SectionHdrWrapper * _getLastSection()
Definition PEFile.cpp:570
PEFile::clearWrappers
virtual void clearWrappers()
Definition PEFile.cpp:162
-
PEFile::_secHdrsEndOffset
offset_t _secHdrsEndOffset()
Definition PEFile.h:377
+
PEFile::_secHdrsEndOffset
offset_t _secHdrsEndOffset()
Definition PEFile.h:376
PEFile::getDataDirectory
IMAGE_DATA_DIRECTORY * getDataDirectory()
Definition PEFile.cpp:292
PEFile::rawToRva
virtual offset_t rawToRva(offset_t raw)
Definition PEFile.cpp:379
PEFile::hdrsSize
bufsize_t hdrsSize()
Definition PEFile.h:83
@@ -1019,7 +1019,7 @@ $(function(){ initResizable(false); });
PEFile::getAlignment
virtual bufsize_t getAlignment(Executable::addr_type aType) const
Definition PEFile.h:69
PEFile::getRichHeaderSign
pe::RICH_SIGNATURE * getRichHeaderSign()
Definition PEFile.cpp:244
PEFile::computeChecksum
static long computeChecksum(BYTE *buffer, size_t bufferSize, offset_t checksumOffset)
Definition PEFile.cpp:45
-
PEFile::dosHdrWrapper
DosHdrWrapper * dosHdrWrapper
Definition PEFile.h:421
+
PEFile::dosHdrWrapper
DosHdrWrapper * dosHdrWrapper
Definition PEFile.h:420
PEFile::_getSectionsCount
size_t _getSectionsCount(bool useMapped=true) const
Definition PEFile.cpp:371
PEFile::addNewSection
SectionHdrWrapper * addNewSection(QString name, bufsize_t size, bufsize_t v_size=0)
Definition PEFile.cpp:508
RelocDirWrapper
Definition RelocDirWrapper.h:10
diff --git a/_p_e_file_8h_source.html b/_p_e_file_8h_source.html index 8a33aa0f..3af52f4d 100644 --- a/_p_e_file_8h_source.html +++ b/_p_e_file_8h_source.html @@ -484,7 +484,7 @@ $(function(){ initResizable(false); });
325 /* wrappers:
326 */
-
327 bool hasDirectory(pe::dir_entry dirNum)
+
327 bool hasDirectory(const pe::dir_entry &dirNum)
328 {
329 return this->getDataDirEntry(dirNum) ? true : false;
330 }
@@ -504,114 +504,113 @@ $(function(){ initResizable(false); });
340 }
341
-
342
-
-
343 void setImageSize(size_t newSize)
-
344 {
-
345 this->setVirtualSize(newSize);
-
346 }
+
+ +
343 {
+
344 this->setVirtualSize(newSize);
+
345 }
-
347
-
-
348 bool canResize(bufsize_t newSize)
-
349 {
-
350 bufsize_t currentSize = (bufsize_t)this->getRawSize();
-
351 if (newSize > currentSize) {
-
352 return true;
-
353 }
-
354 bufsize_t hEnd = bufsize_t(this->peNtHdrOffset()) + this->peNtHeadersSize();
-
355 if (newSize < hEnd) {
-
356 return false; // the resize will harm headers!
-
357 }
-
358 return true;
-
359 }
+
346
+
+
347 bool canResize(bufsize_t newSize)
+
348 {
+
349 bufsize_t currentSize = (bufsize_t)this->getRawSize();
+
350 if (newSize > currentSize) {
+
351 return true;
+
352 }
+
353 bufsize_t hEnd = bufsize_t(this->peNtHdrOffset()) + this->peNtHeadersSize();
+
354 if (newSize < hEnd) {
+
355 return false; // the resize will harm headers!
+
356 }
+
357 return true;
+
358 }
-
360
-
- -
362 {
-
363 bool isRepro = false;
-
364 DebugDirWrapper* dbgDir = dynamic_cast<DebugDirWrapper*>(dataDirEntries[pe::DIR_DEBUG]);
-
365 if (dbgDir && dbgDir->isRepro()) {
-
366 isRepro = true;
-
367 }
-
368 return isRepro;
-
369 }
+
359
+
+ +
361 {
+
362 bool isRepro = false;
+
363 DebugDirWrapper* dbgDir = dynamic_cast<DebugDirWrapper*>(dataDirEntries[pe::DIR_DEBUG]);
+
364 if (dbgDir && dbgDir->isRepro()) {
+
365 isRepro = true;
+
366 }
+
367 return isRepro;
+
368 }
-
370
-
371protected:
-
372 void wrapCore();
-
373
- -
375 bool _canAddNewSection();
-
376
-
- -
378 {
-
379 const offset_t offset = secHdrsOffset();
-
380 if (offset == INVALID_ADDR) {
-
381 return INVALID_ADDR;
-
382 }
-
383 const offset_t secHdrSize = this->_getSectionsCount() * sizeof(IMAGE_SECTION_HEADER);
-
384 return offset + secHdrSize;
-
385 }
+
369
+
370protected:
+
371 void wrapCore();
+
372
+ +
374 bool _canAddNewSection();
+
375
+
+ +
377 {
+
378 const offset_t offset = secHdrsOffset();
+
379 if (offset == INVALID_ADDR) {
+
380 return INVALID_ADDR;
+
381 }
+
382 const offset_t secHdrSize = this->_getSectionsCount() * sizeof(IMAGE_SECTION_HEADER);
+
383 return offset + secHdrSize;
+
384 }
-
386
- -
388
-
389 size_t _getSectionsCount(bool useMapped = true) const;
-
390
-
- -
392 {
-
393 return (sects) ? sects->getSecIndex(sec) : SectHdrsWrapper::SECT_INVALID_INDEX;
-
394 }
+
385
+ +
387
+
388 size_t _getSectionsCount(bool useMapped = true) const;
+
389
+
+ +
391 {
+
392 return (sects) ? sects->getSecIndex(sec) : SectHdrsWrapper::SECT_INVALID_INDEX;
+
393 }
-
395
-
-
396 SectionHdrWrapper* _getSecHdr(size_t index) const
-
397 {
-
398 return (sects) ? sects->_getSecHdr(index) : NULL;
-
399 }
+
394
+
+
395 SectionHdrWrapper* _getSecHdr(size_t index) const
+
396 {
+
397 return (sects) ? sects->_getSecHdr(index) : NULL;
+
398 }
-
400
-
-
401 SectionHdrWrapper* _getSecHdrAtOffset(offset_t offset, Executable::addr_type aType, bool recalculate = false, bool verbose = false)
-
402 {
-
403 return (sects) ? sects->getSecHdrAtOffset(offset, aType, recalculate, verbose) : NULL;
-
404 }
+
399
+
+
400 SectionHdrWrapper* _getSecHdrAtOffset(offset_t offset, Executable::addr_type aType, bool recalculate = false, bool verbose = false)
+
401 {
+
402 return (sects) ? sects->getSecHdrAtOffset(offset, aType, recalculate, verbose) : NULL;
+
403 }
-
405
- -
407
-
408 size_t getExportsMap(QMap<offset_t,QString> &entrypoints, Executable::addr_type aType = Executable::RVA);
-
409
-
410 virtual void clearWrappers();
-
411
-
412 void _init(AbstractByteBuffer *v_buf);
-
413 void initDirEntries();
-
414
-
415 //---
-
416 //modifications:
-
417 bool setHdrSectionsNum(size_t newNum);
-
418 bool setVirtualSize(bufsize_t newSize);
-
419
- - -
422
- - - -
426
- -
428 DataDirEntryWrapper* dataDirEntries[pe::DIR_ENTRIES_COUNT];
-
429 QMutex m_peMutex;
-
430
-
431friend class SectHdrsWrapper;
-
432friend class SectionHdrWrapper;
-
433};
+
404
+ +
406
+
407 size_t getExportsMap(QMap<offset_t,QString> &entrypoints, Executable::addr_type aType = Executable::RVA);
+
408
+
409 virtual void clearWrappers();
+
410
+
411 void _init(AbstractByteBuffer *v_buf);
+
412 void initDirEntries();
+
413
+
414 //---
+
415 //modifications:
+
416 bool setHdrSectionsNum(size_t newNum);
+
417 bool setVirtualSize(bufsize_t newSize);
+
418
+ + +
421
+ + + +
425
+ +
427 DataDirEntryWrapper* dataDirEntries[pe::DIR_ENTRIES_COUNT];
+
428 QMutex m_peMutex;
+
429
+
430friend class SectHdrsWrapper;
+
431friend class SectionHdrWrapper;
+
432};
-
434
+
433
uint32_t bufsize_t
const offset_t INVALID_ADDR
uint64_t offset_t
@@ -675,9 +674,9 @@ $(function(){ initResizable(false); });
QString typeName()
Definition PEFile.h:39
virtual bool signatureMatches(AbstractByteBuffer *buf)
Definition PEFile.cpp:4
-
DataDirEntryWrapper * dataDirEntries[pe::DIR_ENTRIES_COUNT]
Definition PEFile.h:428
+
DataDirEntryWrapper * dataDirEntries[pe::DIR_ENTRIES_COUNT]
Definition PEFile.h:427
DebugDirWrapper * getDebugDir()
Definition PEFile.h:269
-
QMutex m_peMutex
Definition PEFile.h:429
+
QMutex m_peMutex
Definition PEFile.h:428
FileHdrWrapper * getFileHdrWrapper()
Definition PEFile.h:233
virtual bufsize_t getMappedSize(Executable::addr_type aType)
Definition PEFile.cpp:298
BufferView * _createSectionView(SectionHdrWrapper *sec)
Definition PEFile.cpp:697
@@ -686,11 +685,10 @@ $(function(){ initResizable(false); });
RelocDirWrapper * getRelocsDir()
Definition PEFile.h:294
bufsize_t getSectionAlignment() const
Definition PEFile.h:337
offset_t peFileHdrOffset() const
Definition PEFile.h:77
-
SectHdrsWrapper * sects
Definition PEFile.h:425
-
SectionHdrWrapper * _getSecHdr(size_t index) const
Definition PEFile.h:396
+
SectHdrsWrapper * sects
Definition PEFile.h:424
+
SectionHdrWrapper * _getSecHdr(size_t index) const
Definition PEFile.h:395
bufsize_t peNtHeadersSize() const
Definition PEFile.h:79
ImportDirWrapper * getImportsDir()
Definition PEFile.h:254
-
bool hasDirectory(pe::dir_entry dirNum)
Definition PEFile.h:327
virtual ~PEFile()
Definition PEFile.h:63
bool unbindImports()
Definition PEFile.cpp:676
offset_t peDataDirOffset()
Definition PEFile.cpp:286
@@ -699,12 +697,12 @@ $(function(){ initResizable(false); });
void _init(AbstractByteBuffer *v_buf)
Definition PEFile.cpp:116
SecurityDirWrapper * getSecurityDir()
Definition PEFile.h:279
offset_t getMinSecRVA()
Definition PEFile.cpp:273
-
friend class SectHdrsWrapper
Definition PEFile.h:431
+
friend class SectHdrsWrapper
Definition PEFile.h:430
offset_t getLastMapped(Executable::addr_type aType)
Definition PEFile.h:102
-
FileHdrWrapper * fHdr
Definition PEFile.h:423
+
FileHdrWrapper * fHdr
Definition PEFile.h:422
bool wrapDataDirs()
Definition PEFile.cpp:193
-
size_t _getSecIndex(SectionHdrWrapper *sec) const
Definition PEFile.h:391
-
ResourcesAlbum * album
Definition PEFile.h:427
+
size_t _getSecIndex(SectionHdrWrapper *sec) const
Definition PEFile.h:390
+
ResourcesAlbum * album
Definition PEFile.h:426
bool setEntryPoint(offset_t entry, Executable::addr_type aType)
Definition PEFile.cpp:331
pe::RICH_DANS_HEADER * getRichHeaderBgn(pe::RICH_SIGNATURE *sign)
Definition PEFile.cpp:217
virtual size_t getAllEntryPoints(QMap< offset_t, QString > &entrypoints, Executable::addr_type aType=Executable::RVA)
Definition PEFile.h:315
@@ -722,15 +720,16 @@ $(function(){ initResizable(false); });
@ WR_RICH_HDR
Definition PEFile.h:50
@ COUNT_WRAPPERS
Definition PEFile.h:57
DataDirWrapper * getDataDirWrapper()
Definition PEFile.h:243
-
PECore core
Definition PEFile.h:420
+
PECore core
Definition PEFile.h:419
size_t getSectionsCount(bool useMapped=true)
Definition PEFile.h:114
void initDirEntries()
Definition PEFile.cpp:173
virtual void wrap()
Definition PEFile.cpp:211
SectionHdrWrapper * getLastSection()
Definition PEFile.h:191
-
OptHdrWrapper * optHdr
Definition PEFile.h:424
+
OptHdrWrapper * optHdr
Definition PEFile.h:423
bool dumpSection(SectionHdrWrapper *sec, QString fileName)
Definition PEFile.cpp:661
ClrDirWrapper * getClsDir()
Definition PEFile.h:309
offset_t _getLastMapped(Executable::addr_type aType)
Definition PEFile.cpp:576
+
void setImageSize(bufsize_t newSize)
Definition PEFile.h:342
virtual offset_t rvaToRaw(offset_t rva)
Definition PEFile.cpp:407
BufferView * createSectionView(size_t secNum)
Definition PEFile.cpp:447
BoundImpDirWrapper * getBoundImportsDir()
Definition PEFile.h:264
@@ -741,15 +740,15 @@ $(function(){ initResizable(false); });
bool setVirtualSize(bufsize_t newSize)
Definition PEFile.cpp:360
bool _canAddNewSection()
Definition PEFile.cpp:494
void wrapCore()
Definition PEFile.cpp:180
-
friend class SectionHdrWrapper
Definition PEFile.h:432
+
friend class SectionHdrWrapper
Definition PEFile.h:431
DataDirEntryWrapper * getDataDirEntry(pe::dir_entry eType)
Definition PEFile.cpp:441
-
SectionHdrWrapper * _getSecHdrAtOffset(offset_t offset, Executable::addr_type aType, bool recalculate=false, bool verbose=false)
Definition PEFile.h:401
+
SectionHdrWrapper * _getSecHdrAtOffset(offset_t offset, Executable::addr_type aType, bool recalculate=false, bool verbose=false)
Definition PEFile.h:400
bool clearContent(SectionHdrWrapper *sec)
Definition PEFile.h:169
bool moveDataDirEntry(pe::dir_entry id, offset_t newOffset, Executable::addr_type addType=Executable::RAW)
Definition PEFile.cpp:458
SectionHdrWrapper * _getLastSection()
Definition PEFile.cpp:570
virtual void clearWrappers()
Definition PEFile.cpp:162
size_t getSecIndex(SectionHdrWrapper *sec)
Definition PEFile.h:121
-
offset_t _secHdrsEndOffset()
Definition PEFile.h:377
+
offset_t _secHdrsEndOffset()
Definition PEFile.h:376
SectionHdrWrapper * getSecHdr(size_t index)
Definition PEFile.h:128
IMAGE_DATA_DIRECTORY * getDataDirectory()
Definition PEFile.cpp:292
virtual offset_t rawToRva(offset_t raw)
Definition PEFile.cpp:379
@@ -761,25 +760,25 @@ $(function(){ initResizable(false); });
exe_arch getHdrArch()
Definition PEFile.h:98
virtual exe_arch getArch()
Definition PEFile.h:74
SectionHdrWrapper * getEntrySection()
Definition PEFile.h:142
-
void setImageSize(size_t newSize)
Definition PEFile.h:343
PEFile(AbstractByteBuffer *v_buf)
Definition PEFile.cpp:105
offset_t peNtHdrOffset() const
Definition PEFile.h:78
bufsize_t getFileAlignment() const
Definition PEFile.h:332
+
bool hasDirectory(const pe::dir_entry &dirNum)
Definition PEFile.h:327
virtual bufsize_t getAlignment(Executable::addr_type aType) const
Definition PEFile.h:69
virtual exe_bits getBitMode()
Definition PEFile.h:73
BYTE * getSecContent(SectionHdrWrapper *sec)
Definition PEFile.h:150
pe::RICH_SIGNATURE * getRichHeaderSign()
Definition PEFile.cpp:244
-
bool canResize(bufsize_t newSize)
Definition PEFile.h:348
+
bool canResize(bufsize_t newSize)
Definition PEFile.h:347
ExceptionDirWrapper * getExceptionsDir()
Definition PEFile.h:299
bool canAddNewSection()
Definition PEFile.h:198
ExportDirWrapper * getExportsDir()
Definition PEFile.h:274
static long computeChecksum(BYTE *buffer, size_t bufferSize, offset_t checksumOffset)
Definition PEFile.cpp:45
-
DosHdrWrapper * dosHdrWrapper
Definition PEFile.h:421
+
DosHdrWrapper * dosHdrWrapper
Definition PEFile.h:420
OptHdrWrapper * getOptHdrWrapper()
Definition PEFile.h:238
ResourcesContainer * getResourcesOfType(pe::resource_type typeId)
Definition PEFile.h:215
exe_bits getHdrBitMode()
Definition PEFile.h:96
TlsDirWrapper * getTlsDir()
Definition PEFile.h:284
-
bool isReproBuild()
Definition PEFile.h:361
+
bool isReproBuild()
Definition PEFile.h:360
SectionHdrWrapper * getSecHdrAtOffset(offset_t offset, Executable::addr_type aType, bool recalculate=false, bool verbose=false)
Definition PEFile.h:135
size_t _getSectionsCount(bool useMapped=true) const
Definition PEFile.cpp:371
SectionHdrWrapper * addNewSection(QString name, bufsize_t size, bufsize_t v_size=0)
Definition PEFile.cpp:508
diff --git a/_resource_dir_wrapper_8cpp_source.html b/_resource_dir_wrapper_8cpp_source.html index 15cc3e2a..302a267b 100644 --- a/_resource_dir_wrapper_8cpp_source.html +++ b/_resource_dir_wrapper_8cpp_source.html @@ -529,7 +529,7 @@ $(function(){ initResizable(false); });
BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
Definition Executable.h:65
-
bool isReproBuild()
Definition PEFile.h:361
+
bool isReproBuild()
Definition PEFile.h:360
virtual bufsize_t getSize()
diff --git a/_resource_strings_wrapper_8h_source.html b/_resource_strings_wrapper_8h_source.html index 7ac974f1..da72be92 100644 --- a/_resource_strings_wrapper_8h_source.html +++ b/_resource_strings_wrapper_8h_source.html @@ -136,7 +136,7 @@ $(function(){ initResizable(false); });
36 WORD *content = (WORD*) this->m_Exe->getContentAt(offset,Executable::RAW, size);
37 if (content == NULL) return "";
38
-
39 return QString::fromUtf16(content, size);
+
39 return QString::fromUtf16(reinterpret_cast<const char16_t*>(content), size);
40 }
41
diff --git a/_resource_version_wrapper_8h_source.html b/_resource_version_wrapper_8h_source.html index 6f11b592..ce74b62e 100644 --- a/_resource_version_wrapper_8h_source.html +++ b/_resource_version_wrapper_8h_source.html @@ -143,26 +143,27 @@ $(function(){ initResizable(false); });
46 virtual WrappedValue::data_type containsDataType(size_t fieldId, size_t subField = FIELD_NONE);
47
48 pe::version_info *getVersionInfo();
-
- -
50 {
-
51 pe::version_info *info = getVersionInfo();
-
52 if (info == NULL) return ""; //ERROR
-
53
-
54 int size = INFOTEXT_LEN;
-
55 WORD *content = info->key;
-
56 if (content == NULL) return "";
-
57
-
58 return QString::fromUtf16(content, size);
-
59 }
+
49
+
+ +
51 {
+
52 pe::version_info *info = getVersionInfo();
+
53 if (!info) return ""; //ERROR
+
54
+
55 int size = INFOTEXT_LEN;
+
56 const WORD *content = info->key;
+
57 if (!content) return "";
+
58
+
59 return QString::fromUtf16(reinterpret_cast<const char16_t*>(content), size);
+
60 }
-
60
61
62
- -
64};
+
63
+ +
65};
-
65
+
66
uint32_t bufsize_t
#define FIELD_NONE
@@ -173,9 +174,9 @@ $(function(){ initResizable(false); });
virtual WrappedValue::data_type containsDataType(size_t fieldId, size_t subField=FIELD_NONE)
ResourceVersionWrapper(Executable *pe, ResourceLeafWrapper *v_leaf)
- + - +
virtual void * getFieldPtr(size_t fieldId, size_t subField)
diff --git a/_rich_hdr_wrapper_8cpp_source.html b/_rich_hdr_wrapper_8cpp_source.html index 62067379..53bbd57e 100644 --- a/_rich_hdr_wrapper_8cpp_source.html +++ b/_rich_hdr_wrapper_8cpp_source.html @@ -279,7 +279,7 @@ $(function(){ initResizable(false); });
164 if (!data || dansOffset == INVALID_ADDR) return 0;
165
166 DWORD cksum = dansOffset;
-
167 for (size_t i = 0; i < dansOffset && i < dataSize; i++) {
+
167 for (size_t i = 0; i < (size_t)dansOffset && i < dataSize; i++) {
168 //skip e_lfanew
169 if (i >= 0x3c && i < 0x40) {
170 continue;
diff --git a/_sect_hdrs_wrapper_8cpp_source.html b/_sect_hdrs_wrapper_8cpp_source.html index 94f73e44..efe9e478 100644 --- a/_sect_hdrs_wrapper_8cpp_source.html +++ b/_sect_hdrs_wrapper_8cpp_source.html @@ -458,7 +458,7 @@ $(function(){ initResizable(false); });
327 }
328
329 // trim to next section
-
330 int secCounter = m_PE->_getSectionsCount(true);
+
330 size_t secCounter = m_PE->_getSectionsCount(true);
331 for (size_t i = 0; i < secCounter; i++) {
332 SectionHdrWrapper *sec = m_PE->_getSecHdr(i);
333 if (!sec) continue;
diff --git a/class_p_e_file-members.html b/class_p_e_file-members.html index b2c7a896..6c35fbd9 100644 --- a/class_p_e_file-members.html +++ b/class_p_e_file-members.html @@ -198,7 +198,7 @@ $(function(){ initResizable(false); }); getWrapper(size_t wrapperId)ExeWrappersContainervirtual getWrapperName(size_t id)ExeWrappersContainer getWStringValue(offset_t rawOffset, bufsize_t len)AbstractByteBuffer - hasDirectory(pe::dir_entry dirNum)PEFileinline + hasDirectory(const pe::dir_entry &dirNum)PEFileinline hdrSectionsNum() constPEFile hdrsSize()PEFileinline initDirEntries()PEFileprotected @@ -241,7 +241,7 @@ $(function(){ initResizable(false); }); setBufferedValue(BYTE *dstPtr, BYTE *srcPtr, bufsize_t srcSize, bufsize_t paddingSize, bool allowExceptions=false)AbstractByteBuffervirtual setEntryPoint(offset_t entry, Executable::addr_type aType)PEFile setHdrSectionsNum(size_t newNum)PEFileprotected - setImageSize(size_t newSize)PEFileinline + setImageSize(bufsize_t newSize)PEFileinline setNumValue(offset_t offset, bufsize_t size, uint64_t newVal)AbstractByteBuffer setStringValue(offset_t rawOffset, QString newText)AbstractByteBuffer setTextValue(char *textPtr, std::string newText, size_t fieldLimitLen=0)AbstractByteBuffer diff --git a/class_p_e_file.html b/class_p_e_file.html index 6cf7e411..1951541b 100644 --- a/class_p_e_file.html +++ b/class_p_e_file.html @@ -323,14 +323,14 @@ Public Member Functions   virtual size_t getAllEntryPoints (QMap< offset_t, QString > &entrypoints, Executable::addr_type aType=Executable::RVA)   -bool hasDirectory (pe::dir_entry dirNum) -  +bool hasDirectory (const pe::dir_entry &dirNum) +  bufsize_t getFileAlignment () const   bufsize_t getSectionAlignment () const   -void setImageSize (size_t newSize) -  +void setImageSize (bufsize_t newSize) +  bool canResize (bufsize_t newSize)   bool isReproBuild () @@ -1015,7 +1015,7 @@ Here is the call graph for this function:
-

Definition at line 396 of file PEFile.h.

+

Definition at line 395 of file PEFile.h.

Here is the call graph for this function:
@@ -1067,7 +1067,7 @@ Here is the call graph for this function:
-

Definition at line 401 of file PEFile.h.

+

Definition at line 400 of file PEFile.h.

Here is the call graph for this function:
@@ -1105,7 +1105,7 @@ Here is the call graph for this function:
-

Definition at line 391 of file PEFile.h.

+

Definition at line 390 of file PEFile.h.

Here is the call graph for this function:
@@ -1220,7 +1220,7 @@ Here is the call graph for this function:
-

Definition at line 377 of file PEFile.h.

+

Definition at line 376 of file PEFile.h.

Here is the call graph for this function:
@@ -1469,7 +1469,7 @@ Here is the call graph for this function:

Reimplemented from MappedExe.

-

Definition at line 348 of file PEFile.h.

+

Definition at line 347 of file PEFile.h.

Here is the call graph for this function:
@@ -3898,8 +3898,8 @@ Here is the call graph for this function:
- -

◆ hasDirectory()

+ +

◆ hasDirectory()

@@ -3910,7 +3910,7 @@ Here is the call graph for this function:
bool PEFile::hasDirectory ( - pe::dir_entry dirNum) + const pe::dir_entry & dirNum) @@ -3925,8 +3925,8 @@ Here is the call graph for this function:
Here is the call graph for this function:
-
- +
+ @@ -4031,7 +4031,7 @@ Here is the call graph for this function:
-

Definition at line 361 of file PEFile.h.

+

Definition at line 360 of file PEFile.h.

Here is the call graph for this function:
@@ -4652,8 +4652,8 @@ Here is the call graph for this function:
- -

◆ setImageSize()

+ +

◆ setImageSize()

@@ -4664,7 +4664,7 @@ Here is the call graph for this function:
void PEFile::setImageSize ( - size_t newSize) + bufsize_t newSize) @@ -4675,12 +4675,12 @@ Here is the call graph for this function:
-

Definition at line 343 of file PEFile.h.

+

Definition at line 342 of file PEFile.h.

Here is the call graph for this function:
-
- +
+ @@ -4883,7 +4883,7 @@ Here is the call graph for this function:
-

Definition at line 431 of file PEFile.h.

+

Definition at line 430 of file PEFile.h.

@@ -4907,7 +4907,7 @@ Here is the call graph for this function:
-

Definition at line 432 of file PEFile.h.

+

Definition at line 431 of file PEFile.h.

@@ -4932,7 +4932,7 @@ Here is the call graph for this function:
-

Definition at line 427 of file PEFile.h.

+

Definition at line 426 of file PEFile.h.

@@ -4956,7 +4956,7 @@ Here is the call graph for this function:
-

Definition at line 420 of file PEFile.h.

+

Definition at line 419 of file PEFile.h.

@@ -4980,7 +4980,7 @@ Here is the call graph for this function:
-

Definition at line 428 of file PEFile.h.

+

Definition at line 427 of file PEFile.h.

@@ -5004,7 +5004,7 @@ Here is the call graph for this function:
-

Definition at line 421 of file PEFile.h.

+

Definition at line 420 of file PEFile.h.

@@ -5028,7 +5028,7 @@ Here is the call graph for this function:
-

Definition at line 423 of file PEFile.h.

+

Definition at line 422 of file PEFile.h.

@@ -5052,7 +5052,7 @@ Here is the call graph for this function:
-

Definition at line 429 of file PEFile.h.

+

Definition at line 428 of file PEFile.h.

@@ -5076,7 +5076,7 @@ Here is the call graph for this function:
-

Definition at line 424 of file PEFile.h.

+

Definition at line 423 of file PEFile.h.

@@ -5100,7 +5100,7 @@ Here is the call graph for this function:
-

Definition at line 425 of file PEFile.h.

+

Definition at line 424 of file PEFile.h.

diff --git a/class_p_e_file_ac401f0d815819cd69fdb3e522af88fa0_cgraph.map b/class_p_e_file_a7ee5189ef6798b09446f02cc340fd9f4_cgraph.map similarity index 100% rename from class_p_e_file_ac401f0d815819cd69fdb3e522af88fa0_cgraph.map rename to class_p_e_file_a7ee5189ef6798b09446f02cc340fd9f4_cgraph.map diff --git a/class_p_e_file_ac401f0d815819cd69fdb3e522af88fa0_cgraph.md5 b/class_p_e_file_a7ee5189ef6798b09446f02cc340fd9f4_cgraph.md5 similarity index 100% rename from class_p_e_file_ac401f0d815819cd69fdb3e522af88fa0_cgraph.md5 rename to class_p_e_file_a7ee5189ef6798b09446f02cc340fd9f4_cgraph.md5 diff --git a/class_p_e_file_ac401f0d815819cd69fdb3e522af88fa0_cgraph.png b/class_p_e_file_a7ee5189ef6798b09446f02cc340fd9f4_cgraph.png similarity index 100% rename from class_p_e_file_ac401f0d815819cd69fdb3e522af88fa0_cgraph.png rename to class_p_e_file_a7ee5189ef6798b09446f02cc340fd9f4_cgraph.png diff --git a/class_p_e_file_a2e006cce7d9641a27bb3446b64477c71_cgraph.map b/class_p_e_file_acae33488be5a173b0e0a5a81bd5b54d5_cgraph.map similarity index 100% rename from class_p_e_file_a2e006cce7d9641a27bb3446b64477c71_cgraph.map rename to class_p_e_file_acae33488be5a173b0e0a5a81bd5b54d5_cgraph.map diff --git a/class_p_e_file_a2e006cce7d9641a27bb3446b64477c71_cgraph.md5 b/class_p_e_file_acae33488be5a173b0e0a5a81bd5b54d5_cgraph.md5 similarity index 100% rename from class_p_e_file_a2e006cce7d9641a27bb3446b64477c71_cgraph.md5 rename to class_p_e_file_acae33488be5a173b0e0a5a81bd5b54d5_cgraph.md5 diff --git a/class_p_e_file_a2e006cce7d9641a27bb3446b64477c71_cgraph.png b/class_p_e_file_acae33488be5a173b0e0a5a81bd5b54d5_cgraph.png similarity index 100% rename from class_p_e_file_a2e006cce7d9641a27bb3446b64477c71_cgraph.png rename to class_p_e_file_acae33488be5a173b0e0a5a81bd5b54d5_cgraph.png diff --git a/class_resource_version_wrapper.html b/class_resource_version_wrapper.html index 466bdeb0..21fc1b28 100644 --- a/class_resource_version_wrapper.html +++ b/class_resource_version_wrapper.html @@ -813,7 +813,7 @@ Here is the call graph for this function:
-

Definition at line 49 of file ResourceVersionWrapper.h.

+

Definition at line 50 of file ResourceVersionWrapper.h.

Here is the call graph for this function:
@@ -855,7 +855,7 @@ Here is the call graph for this function:
-

Definition at line 63 of file ResourceVersionWrapper.h.

+

Definition at line 64 of file ResourceVersionWrapper.h.

diff --git a/doxygen_crawl.html b/doxygen_crawl.html index 38758020..cd50b4c2 100644 --- a/doxygen_crawl.html +++ b/doxygen_crawl.html @@ -1268,7 +1268,6 @@ - @@ -1309,6 +1308,7 @@ + @@ -1339,10 +1339,10 @@ - + diff --git a/functions_func_h.html b/functions_func_h.html index e28c6a6f..f24d5f91 100644 --- a/functions_func_h.html +++ b/functions_func_h.html @@ -88,7 +88,7 @@ $(function(){ initResizable(false); });
Here is a list of all functions with links to the classes they belong to:

- h -