We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a982737 commit 6f83dc8Copy full SHA for 6f83dc8
1 file changed
Lib/test/test_cmd_line.py
@@ -203,9 +203,10 @@ def test_run_module_bug1764407(self):
203
204
@support.cpython_only
205
def test_null_byte_in_interactive_mode(self):
206
- # gh-140594: heap-buffer-overflow in PyOS_StdioReadline when a NULL
207
- # is present in interactive input. The test ensures that feeding a null
208
- # byte to the interactive prompt does not crash the interpreter.
+ # gh-140594: Fix a buffer overflow when a single NULL character is read
+ # from standard input in interactive mode. The test ensures that
+ # feeding a null byte to the interactive prompt does not crash
209
+ # the interpreter.
210
proc = spawn_python('-i')
211
proc.communicate(b'\x00', timeout=10)
212
self.assertEqual(proc.returncode, 0)
0 commit comments