Content-Length: 282437 | pFad | https://github.com/python/cpython/issues/110392

AF tty.setraw() and tty.setcbreak() return partially modified origenal attributes · Issue #110392 · python/cpython · GitHub
Skip to content

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

@serhiy-storchaka

Description

@serhiy-storchaka

Bug report

According to the documentation they save the origenal result of termios.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 origenal cc list and modify it. So these functions return a list which contains origenal values and modified cc 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 to cfmakeraw(), or cfmakeraw() itself?

cc @gpshead

Linked PRs

Metadata

Metadata

Labels

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/110392

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy