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

Null Dereference "subname" in zipimport.c #69508

Closed
Pankaj mannequin opened this issue Oct 6, 2015 · 2 comments
Closed

Null Dereference "subname" in zipimport.c #69508

Pankaj mannequin opened this issue Oct 6, 2015 · 2 comments
Labels
stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@Pankaj
Copy link
Mannequin

Pankaj mannequin commented Oct 6, 2015

BPO 25321
Nosy @Yhg1s, @benjaminp, @pankaj
Files
  • Python-2.7.10-zipimport-01.patch: Python-2.7.10-zipimport-01
  • 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 2015-10-07.02:11:53.195>
    created_at = <Date 2015-10-06.05:47:16.384>
    labels = ['invalid', 'library', 'type-crash']
    title = 'Null Dereference  "subname" in zipimport.c'
    updated_at = <Date 2015-10-07.02:11:53.194>
    user = 'https://github.com/Pankaj'

    bugs.python.org fields:

    activity = <Date 2015-10-07.02:11:53.194>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-10-07.02:11:53.195>
    closer = 'benjamin.peterson'
    components = ['Library (Lib)']
    creation = <Date 2015-10-06.05:47:16.384>
    creator = 'pankaj.s01'
    dependencies = []
    files = ['40695']
    hgrepos = []
    issue_num = 25321
    keywords = ['patch']
    message_count = 2.0
    messages = ['252377', '252378']
    nosy_count = 3.0
    nosy_names = ['twouters', 'benjamin.peterson', 'pankaj.s01']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = None
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue25321'
    versions = ['Python 2.7']

    @Pankaj
    Copy link
    Mannequin Author

    Pankaj mannequin commented Oct 6, 2015

    Hi ,
    The issues reported as String NULL dereferecne at line
    Python-2.7.10/Modules/zipimport.c:266 for "subname" which assigned by
    get_subname(fullname) at line 264.so there should be check "subname" for NULL and return error,if it is NULL.
    the respective patch have been attached ,please review it.
    Thanks

    @Pankaj Pankaj mannequin added stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump labels Oct 6, 2015
    @benjaminp
    Copy link
    Contributor

    I don't think get_subname can return NULL.

    @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
    stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant