2009-05-13 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / tests / metadata-verifier / data-directory-tests.md
index 35e73d5f799bce73c7217a011e84b456ebe0f87e..03be4f38c5fcfcb8bd9355db43faba86aa63430a 100644 (file)
@@ -94,6 +94,7 @@ pe-import-table-IAT {
        assembly simple-assembly.exe
 
        #Bad RVA for the Hint/Name table
+       #LAMEIMPL - MS ignores this
        invalid offset translate.rva.ind ( translate.rva.ind ( pe-optional-header + 104 ) + 16 ) set-uint 0x88888
 
        #Bad content in the Hint/Name table
@@ -108,3 +109,15 @@ pe-import-table-name {
        invalid offset translate.rva.ind ( translate.rva.ind ( pe-optional-header + 104 ) + 12 ) set-uint 0x454c
 }
 
+pe-IAT {
+       #Simple assembly has 2 sections since it doesn't have any resources
+       assembly simple-assembly.exe
+
+       #Bad RVA to the Hint/Name table
+       #LAMEIMPL - MS ignores this
+       invalid offset translate.rva.ind ( pe-optional-header + 192 ) set-uint 0x88880
+
+       #Bad content in the Hint/Name table
+       invalid offset translate.rva.ind ( translate.rva.ind ( pe-optional-header + 192 ) ) + 2 set-uint 0x454c
+
+}