Skip to content

Commit 6f83dc8

Browse files
committed
fix test docstring
1 parent a982737 commit 6f83dc8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Lib/test/test_cmd_line.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,10 @@ def test_run_module_bug1764407(self):
203203

204204
@support.cpython_only
205205
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.
206+
# gh-140594: Fix a buffer overflow when a single NULL character is read
207+
# from standard input in interactive mode. The test ensures that
208+
# feeding a null byte to the interactive prompt does not crash
209+
# the interpreter.
209210
proc = spawn_python('-i')
210211
proc.communicate(b'\x00', timeout=10)
211212
self.assertEqual(proc.returncode, 0)

0 commit comments

Comments
 (0)