Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

tty.setraw() and tty.setcbreak() return partially modified original attributes #110392

Closed
Assignees
serhiy-storchaka
Labels
3.12only security fixes3.13bugs and security fixestype-bugAn unexpected behavior, bug, or error
@serhiy-storchaka

Description

@serhiy-storchaka

Bug report

According to the documentation they save the original result oftermios.tcgetattr() and return it. But while making a copy of the attribute list before modifying it they do not take in account that it contains a reference to originalcc list and modify it. So these functions return a list which contains original values and modifiedcc list.

These functions started returning the attribute list in#85984 (486bc8e).

The question: who should make a copy of the internal list:setraw() before passing it tocfmakeraw(), orcfmakeraw() itself?

cc@gpshead

Linked PRs

Metadata

Metadata

Labels

3.12only security fixes3.13bugs and security fixestype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp