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

Fix possible ref. leaks in _sqlite3 module initialisation #86187

Closed
erlend-aasland opened this issue Oct 12, 2020 · 2 comments
Closed

Fix possible ref. leaks in _sqlite3 module initialisation #86187

erlend-aasland opened this issue Oct 12, 2020 · 2 comments
Labels
3.8 only security fixes 3.9 only security fixes 3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@erlend-aasland
Copy link
Contributor

BPO 42021
Nosy @berkerpeksag, @corona10, @erlend-aasland
PRs
  • bpo-42021: Fix possible ref leaks during _sqlite3 module init #22673
  • 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 2020-10-15.12:22:02.528>
    created_at = <Date 2020-10-12.19:18:40.757>
    labels = ['3.8', 'type-bug', 'library', '3.9', '3.10']
    title = 'Fix possible ref. leaks in _sqlite3 module initialisation'
    updated_at = <Date 2020-10-15.12:22:02.527>
    user = 'https://github.com/erlend-aasland'

    bugs.python.org fields:

    activity = <Date 2020-10-15.12:22:02.527>
    actor = 'erlendaasland'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-10-15.12:22:02.528>
    closer = 'erlendaasland'
    components = ['Library (Lib)']
    creation = <Date 2020-10-12.19:18:40.757>
    creator = 'erlendaasland'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42021
    keywords = ['patch']
    message_count = 2.0
    messages = ['378516', '378680']
    nosy_count = 3.0
    nosy_names = ['berker.peksag', 'corona10', 'erlendaasland']
    pr_nums = ['22673']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42021'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    @erlend-aasland
    Copy link
    Contributor Author

    Handle PyDict_SetItemString() errors in _sqlite3 init by dereferencing the item object and then goto error.

    @erlend-aasland erlend-aasland added 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Oct 12, 2020
    @corona10
    Copy link
    Member

    New changeset 644e942 by Erlend Egeberg Aasland in branch 'master':
    bpo-42021: Fix possible ref leaks during _sqlite3 module init (GH-22673)
    644e942

    @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.8 only security fixes 3.9 only security fixes 3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants