Null bytes in the format string must be handled.
()
| 105 | |
| 106 | |
| 107 | def test_null_byte_in_format(): |
| 108 | """Null bytes in the format string must be handled.""" |
| 109 | def run(): |
| 110 | r = parse("hello \x00 {}", "hello world") |
| 111 | return r is not None |
| 112 | |
| 113 | _check_no_crash(run) |
| 114 | |
| 115 | |
| 116 | def test_control_characters_in_both(): |
nothing calls this directly
no test coverage detected