Bug 2370944
Summary: | anaconda raises SystemError: buffer overflow on Python 3.14 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> | ||||
Component: | anaconda | Assignee: | anaconda-maint | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | anaconda-maint, awilliam, kkoukiou, ksurma, lbalhar, mhroncok, python-maint, python-packagers-sig, w | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | anaconda-43.22-4.fc43 | Doc Type: | --- | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2025-06-09 09:48:12 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 2322407 | ||||||
Attachments: |
|
Description
Miro Hrončok
2025-06-07 11:11:29 UTC
Created attachment 2093342 [details]
screen from OpenQA
>>> termios.TIOCGWINSZ
21523
This is the same on both.
https://github.com/python/cpython/commit/c2eaeee3dc3306ca486b0377b07b1a957584b691 Try to detect a buffer overflow in fcntl() and ioctl() This works.
>>> import sys, termios, fcntl, struct
>>> data = fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, "12345678")
>>> int(struct.unpack('hhhh', data)[1])
225
We need to read 4 shorts, not 2:
struct winsize {
unsigned short ws_row;
unsigned short ws_col;
unsigned short ws_xpixel;
unsigned short ws_ypixel;
};
|