|
21 | 21 | name="single_code_single_data_section", |
22 | 22 | sections=[ |
23 | 23 | Section.Code( |
24 | | - code=Op.ADDRESS + Op.POP + Op.STOP, |
| 24 | + code=Op.PUSH0 + Op.POP + Op.STOP, |
25 | 25 | max_stack_height=1, |
26 | 26 | ), |
27 | | - Section.Data(data="0xef"), |
| 27 | + Section.Data(data="0x00"), |
28 | 28 | ], |
29 | 29 | ), |
30 | 30 | Container( |
|
149 | 149 | ), |
150 | 150 | Container( |
151 | 151 | name="code_section_size_incomplete_4", |
152 | | - raw_bytes=bytes([0xEF, 0x00, 0x01, 0x01, 0x00, 0x04, 0x02, 0x00, 0x01]), |
153 | | - validity_error=EOFException.MISSING_HEADERS_TERMINATOR, |
154 | | - ), |
155 | | - Container( |
156 | | - name="code_section_size_incomplete_5", |
157 | 152 | raw_bytes=bytes([0xEF, 0x00, 0x01, 0x01, 0x00, 0x04, 0x02, 0x00, 0x01, 0x00]), |
158 | 153 | validity_error=EOFException.INCOMPLETE_SECTION_SIZE, |
159 | 154 | ), |
|
389 | 384 | validity_error=EOFException.MISSING_TERMINATOR, |
390 | 385 | ), |
391 | 386 | Container( |
392 | | - name="multiple_code_and_data_sections_1", |
| 387 | + name="multiple_code_and_data_sections", |
393 | 388 | sections=[ |
394 | 389 | Section.Code(Op.STOP), |
395 | 390 | Section.Code(Op.STOP), |
|
398 | 393 | ], |
399 | 394 | validity_error=EOFException.MISSING_TERMINATOR, |
400 | 395 | ), |
401 | | - Container( |
402 | | - name="multiple_code_and_data_sections_2", |
403 | | - sections=[ |
404 | | - Section.Code(Op.STOP), |
405 | | - Section.Data(data="0xAA"), |
406 | | - Section.Code(Op.STOP), |
407 | | - Section.Data(data="0xAA"), |
408 | | - ], |
409 | | - validity_error=EOFException.MISSING_TERMINATOR, |
410 | | - ), |
411 | 396 | Container( |
412 | 397 | name="unknown_section_1", |
413 | 398 | sections=[ |
|
609 | 594 | ), |
610 | 595 | Container( |
611 | 596 | name="single_code_section_incomplete_type", |
612 | | - sections=[ |
613 | | - Section(kind=Kind.TYPE, data="0x00"), |
614 | | - Section.Code(Op.STOP), |
615 | | - ], |
616 | | - auto_type_section=AutoSection.NONE, |
617 | | - validity_error=EOFException.INVALID_TYPE_SECTION_SIZE, |
618 | | - ), |
619 | | - Container( |
620 | | - name="single_code_section_incomplete_type_2", |
621 | 597 | sections=[ |
622 | 598 | Section(kind=Kind.TYPE, data="0x00", custom_size=2), |
623 | 599 | Section.Code(Op.STOP), |
|
0 commit comments