20{
27
28
32 {
33 DPRINT1(
"Image doesn't have a valid DOS header\n");
35 }
36
37
41 {
42 DPRINT1(
"Image doesn't have a valid PE header\n");
44 }
45
46
49 - (char *) ImageStart))
50 {
51 DPRINT1(
"Image doesn't have valid section headers\n");
53 }
56 {
58 {
59 RosSymSectionFound =
TRUE;
60 break;
61 }
62 SectionHeader++;
63 }
64
65 if (!RosSymSectionFound)
66 {
69 }
70
71
72 if (ImageSize < SectionHeader->PointerToRawData + SectionHeader->
SizeOfRawData
74 {
77 }
78
80 {
83 }
84
85
88}
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
PIMAGE_NT_HEADERS32 PIMAGE_NT_HEADERS
struct _IMAGE_DOS_HEADER * PIMAGE_DOS_HEADER
#define IMAGE_FIRST_SECTION(NtHeader)
#define IMAGE_SIZEOF_SHORT_NAME
#define ROSSYM_IS_VALID_NT_HEADERS(NtHeaders)
#define ROSSYM_IS_VALID_DOS_HEADER(DosHeader)
#define ROSSYM_SECTION_NAME
BOOLEAN RosSymCreateFromRaw(PVOID RawData, ULONG_PTR DataSize, PROSSYM_INFO *RosSymInfo)