mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-05-09 01:49:33 +00:00
.
This commit is contained in:
parent
194c54c570
commit
5c738fd195
@ -79,11 +79,16 @@ bool readOptionalHeader(bounded_buffer *b, optional_header_32 &header) {
|
|||||||
#undef READ_WORD
|
#undef READ_WORD
|
||||||
#undef READ_DWORD
|
#undef READ_DWORD
|
||||||
#undef READ_BYTE
|
#undef READ_BYTE
|
||||||
|
|
||||||
|
::uint32_t maxEnt = header.NumberOfRvaAndSizes;
|
||||||
|
for(::uint32_t i = 0; i < maxEnt; i++) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool readFileHeader(bounded_buffer *b, file_header &header) {
|
bool readFileHeader(bounded_buffer *b, file_header &header) {
|
||||||
|
|
||||||
#define READ_WORD(x) \
|
#define READ_WORD(x) \
|
||||||
if(readWord(b, _offset(file_header, x), header.x) == false) { \
|
if(readWord(b, _offset(file_header, x), header.x) == false) { \
|
||||||
return false; \
|
return false; \
|
||||||
@ -132,7 +137,7 @@ bool readNtHeader(bounded_buffer *b, nt_header_32 &header) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getHeader(bounded_buffer *file) {
|
bool getHeader(bounded_buffer *file) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user