Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix wording: out of bounds read, not buffer overflow
  • Loading branch information
ashm-dev committed Mar 11, 2026
commit 67895de79aa804057081e8c456d899b55feb4aa2
6 changes: 2 additions & 4 deletions Lib/test/test_cmd_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,8 @@ def test_run_module_bug1764407(self):

@support.cpython_only
def test_null_byte_in_interactive_mode(self):
# 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
# the interpreter.
# gh-140594: Fix an out of bounds read when a single NUL character
# is read from the standard input in interactive mode.
proc = spawn_python('-i')
proc.communicate(b'\x00', timeout=10)
Comment thread
ashm-dev marked this conversation as resolved.
Outdated
Comment thread
vstinner marked this conversation as resolved.
Outdated
self.assertEqual(proc.returncode, 0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Fix a buffer overflow when a single NULL character is read from the standard input.
Fix an out of bounds read when a single NUL character is read from the standard input.
Patch by Shamil Abdulaev.
Loading