Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WindowExecutableFileType/DOSHeaderType is specified incorrectly. #419

Open
rpiazza opened this issue Jan 22, 2016 · 0 comments
Open

WindowExecutableFileType/DOSHeaderType is specified incorrectly. #419

rpiazza opened this issue Jan 22, 2016 · 0 comments

Comments

@rpiazza
Copy link

rpiazza commented Jan 22, 2016

In the DOSHeaderType, we have the following two properties/fields:

<xs:element name="reserved1" type="cyboxCommon:HexBinaryObjectPropertyType" minOccurs="0" maxOccurs="4">
    <xs:annotation>
           <xs:documentation>Specifies reserved words for the program (known in winnt.h as e_res[4]), usually set to zero by the linker. In this case, just use a single reserved1 set to zero; if not zero create four reserved1 with the correct value.</xs:documentation>
    </xs:annotation>
</xs:element>

and

 <xs:element name="reserved2" type="cyboxCommon:HexBinaryObjectPropertyType" minOccurs="0">
    <xs:annotation>
           <xs:documentation>Specifies reserved words for the program (known in winnt.h as e_res[10]), usually set to zero by the linker. In this case, just use a single reserved1 set to zero; if not zero create ten reserved1 with the correct value.</xs:documentation>
    </xs:annotation>
</xs:element>

In the doc for reserved2, it says in some cases there should be ten reserved1 values, but reserved1 is 0..4

Is 0..4 wrong, or should the doc for reserved2 say reserved2 and it be 0..10?

Google says the latter - https://en.wikibooks.org/wiki/X86_Disassembly/Windows_Executable_Files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant