Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signed integer overflow in _ctypes.c's PyCArrayType_new() #80685

Closed
ZackerySpytz mannequin opened this issue Apr 2, 2019 · 4 comments
Closed

Signed integer overflow in _ctypes.c's PyCArrayType_new() #80685

ZackerySpytz mannequin opened this issue Apr 2, 2019 · 4 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes extension-modules C modules in the Modules dir topic-ctypes type-bug An unexpected behavior, bug, or error

Comments

@ZackerySpytz
Copy link
Mannequin

ZackerySpytz mannequin commented Apr 2, 2019

BPO 36504
Nosy @amauryfa, @abalkin, @meadori, @serhiy-storchaka, @ZackerySpytz, @miss-islington
PRs
  • bpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new() #12660
  • [3.7] bpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660) #12676
  • [2.7] bpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660) #12678
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-04-06.16:50:45.346>
    created_at = <Date 2019-04-02.10:09:01.561>
    labels = ['extension-modules', '3.8', 'ctypes', 'type-bug', '3.7']
    title = "Signed integer overflow in _ctypes.c's PyCArrayType_new()"
    updated_at = <Date 2019-04-06.16:50:45.345>
    user = 'https://github.com/ZackerySpytz'

    bugs.python.org fields:

    activity = <Date 2019-04-06.16:50:45.345>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-04-06.16:50:45.346>
    closer = 'serhiy.storchaka'
    components = ['Extension Modules', 'ctypes']
    creation = <Date 2019-04-02.10:09:01.561>
    creator = 'ZackerySpytz'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36504
    keywords = ['patch']
    message_count = 4.0
    messages = ['339326', '339327', '339407', '339415']
    nosy_count = 6.0
    nosy_names = ['amaury.forgeotdarc', 'belopolsky', 'meador.inge', 'serhiy.storchaka', 'ZackerySpytz', 'miss-islington']
    pr_nums = ['12660', '12676', '12678']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue36504'
    versions = ['Python 2.7', 'Python 3.7', 'Python 3.8']

    @ZackerySpytz
    Copy link
    Mannequin Author

    ZackerySpytz mannequin commented Apr 2, 2019

    Signed integer overflow can occur in the overflow check in PyCArrayType_new() if "itemsize" is large enough.

    @ZackerySpytz ZackerySpytz mannequin added 3.7 (EOL) end of life 3.8 only security fixes extension-modules C modules in the Modules dir topic-ctypes type-bug An unexpected behavior, bug, or error labels Apr 2, 2019
    @serhiy-storchaka
    Copy link
    Member

    New changeset 487b73a by Serhiy Storchaka (Zackery Spytz) in branch 'master':
    bpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660)
    487b73a

    @miss-islington
    Copy link
    Contributor

    New changeset 9c08eeb by Miss Islington (bot) in branch '3.7':
    bpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660)
    9c08eeb

    @serhiy-storchaka
    Copy link
    Member

    New changeset fd83a82 by Serhiy Storchaka (Zackery Spytz) in branch '2.7':
    bpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660) (GH-12678)
    fd83a82

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 only security fixes extension-modules C modules in the Modules dir topic-ctypes type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants