MCPcopy Create free account
hub / github.com/coooodeer/parse-rust / test_null_byte_in_format

Function test_null_byte_in_format

tests/test_security_inputs.py:107–113  ·  view source on GitHub ↗

Null bytes in the format string must be handled.

()

Source from the content-addressed store, hash-verified

105
106
107def 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
116def test_control_characters_in_both():

Callers

nothing calls this directly

Calls 1

_check_no_crashFunction · 0.85

Tested by

no test coverage detected