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

[3.11] gh-62260: Fix ctypes.Structure subclassing with multiple layers (GH-13374)#113624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedJan 1, 2024
edited by bedevere-appbot
Loading

The length field of StgDictObject for Structure class contains now the total number of items in ffi_type_pointer.elements (excluding the trailing null).

The old behavior of using the number of elements in the parent class can cause the array to be truncated when it is copied, especially when there are multiple layers of subclassing.

(cherry picked from commit5f3cc90)

… layers (pythonGH-13374)The length field of StgDictObject for Structure class contains nowthe total number of items in ffi_type_pointer.elements (excludingthe trailing null).The old behavior of using the number of elements in the parent class cancause the array to be truncated when it is copied, especially when thereare multiple layers of subclassing.(cherry picked from commit5f3cc90)Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchakaserhiy-storchakaenabled auto-merge (squash)January 1, 2024 16:31
@serhiy-storchakaserhiy-storchaka merged commit3615349 intopython:3.11Jan 1, 2024
@serhiy-storchakaserhiy-storchaka deleted the backport-5f3cc90-3.11 branchJanuary 28, 2024 12:03
gentoo-bot pushed a commit to gentoo/cpython that referenced this pull requestSep 19, 2024
… layers (pythonGH-13374) (pythonGH-113624)The length field of StgDictObject for Structure class contains nowthe total number of items in ffi_type_pointer.elements (excludingthe trailing null).The old behavior of using the number of elements in the parent class cancause the array to be truncated when it is copied, especially when thereare multiple layers of subclassing.(cherry picked from commit5f3cc90)Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>Signed-off-by: Michał Górny <mgorny@gentoo.org>
gentoo-bot pushed a commit to gentoo/cpython that referenced this pull requestSep 19, 2024
… layers (pythonGH-13374) (pythonGH-113624)The length field of StgDictObject for Structure class contains nowthe total number of items in ffi_type_pointer.elements (excludingthe trailing null).The old behavior of using the number of elements in the parent class cancause the array to be truncated when it is copied, especially when thereare multiple layers of subclassing.(cherry picked from commit5f3cc90)Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>Signed-off-by: Michał Górny <mgorny@gentoo.org>
gentoo-bot pushed a commit to gentoo/cpython that referenced this pull requestSep 19, 2024
… layers (pythonGH-13374) (pythonGH-113624)The length field of StgDictObject for Structure class contains nowthe total number of items in ffi_type_pointer.elements (excludingthe trailing null).The old behavior of using the number of elements in the parent class cancause the array to be truncated when it is copied, especially when thereare multiple layers of subclassing.(cherry picked from commit5f3cc90)Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>Signed-off-by: Michał Górny <mgorny@gentoo.org>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@serhiy-storchaka@websurfer5

[8]ページ先頭

©2009-2025 Movatter.jp