# TurkOS K442 ELF corpus v1. Base: kernel/src/elf.rs tests::executable_fixture(). # id|api|operation|offset|hex-bytes-or-cut-length|expected good-ident|ident|write|0|7f|ok good-layout|layout|write|0|7f|ok good-load|load|write|0|7f|ok bad-magic-ident|ident|write|0|00|BadMagic bad-magic-layout|layout|write|0|00|BadMagic bad-magic-load|load|write|0|00|BadMagic short-ident|ident|cut|0|19|Truncated short-layout|layout|cut|0|63|Truncated short-load|load|cut|0|63|Truncated class32|ident|write|4|01|WrongClass big-endian|ident|write|5|02|WrongEndian ident-version|ident|write|6|02|WrongVersion x86-machine|ident|write|18|3e00|WrongMachine dynamic-type|layout|write|16|0300|WrongType wrong-elf-version|layout|write|20|02000000|WrongType wrong-header-size|layout|write|52|3f00|WrongType zero-programs|layout|write|56|0000|BadProgramCount five-programs|layout|write|56|0500|BadProgramCount wrong-program-entry-size|layout|write|54|3700|BadProgramTable program-offset-overflow|layout|write|32|ffffffffffffffff|BadProgramTable truncated-program-table|layout|cut|0|175|BadProgramTable nonload-segment|layout|write|64|02000000|UnsupportedSegment unknown-segment-flag|layout|write|68|80000000|UnsupportedSegment write-execute-segment|layout|write|68|07000000|WritableExecutable file-offset-overflow|layout|write|72|ffffffffffffffff|BadFileRange file-range-beyond-end|layout|write|72|fd01000000000000|BadFileRange file-larger-than-memory|layout|write|96|0d00000000000000|FileLargerThanMemory invalid-user-address|layout|write|80|0000000000000000|BadUserAddress entry-outside-code|load|write|24|0000000000000000|BadEntry wrong-code-permission|load|write|68|06000000|BadSegmentPermissions wrong-data-permission|load|write|124|05000000|BadSegmentPermissions duplicate-code-segment|load|write|136|0000008000000000|OverlappingSegments