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 format specifiers for debug output in _sre.c #62872

Closed
serhiy-storchaka opened this issue Aug 6, 2013 · 2 comments
Closed

Fix format specifiers for debug output in _sre.c #62872

serhiy-storchaka opened this issue Aug 6, 2013 · 2 comments
Assignees
Labels
topic-regex type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

BPO 18672
Nosy @ezio-melotti, @serhiy-storchaka
Files
  • re_trace_format.patch
  • 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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2013-09-05.15:24:58.141>
    created_at = <Date 2013-08-06.16:11:58.862>
    labels = ['expert-regex', 'type-bug']
    title = 'Fix format specifiers for debug output in _sre.c'
    updated_at = <Date 2013-09-05.15:24:58.140>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2013-09-05.15:24:58.140>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2013-09-05.15:24:58.141>
    closer = 'serhiy.storchaka'
    components = ['Regular Expressions']
    creation = <Date 2013-08-06.16:11:58.862>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['31177']
    hgrepos = []
    issue_num = 18672
    keywords = ['patch', 'needs review']
    message_count = 2.0
    messages = ['194561', '197006']
    nosy_count = 5.0
    nosy_names = ['ezio.melotti', 'mrabarnett', 'Arfrever', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue18672'
    versions = ['Python 2.7', 'Python 3.3', 'Python 3.4']

    @serhiy-storchaka
    Copy link
    Member Author

    When the VERBOSE macro name is defined in _sre.c the TRACE macro prints regex processing trace. It use the %d format specifier for Py_ssize_t values. This can crash on 64-bit. Proposed patch fixes format strings.

    @serhiy-storchaka serhiy-storchaka added topic-regex type-bug An unexpected behavior, bug, or error labels Aug 6, 2013
    @serhiy-storchaka serhiy-storchaka self-assigned this Aug 29, 2013
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 5, 2013

    New changeset 99310e5e1b1c by Serhiy Storchaka in branch '3.3':
    Issue bpo-18672: Fixed format specifiers for Py_ssize_t in debugging output in
    http://hg.python.org/cpython/rev/99310e5e1b1c

    New changeset c41c68a18bb6 by Serhiy Storchaka in branch 'default':
    Issue bpo-18672: Fixed format specifiers for Py_ssize_t in debugging output in
    http://hg.python.org/cpython/rev/c41c68a18bb6

    New changeset 603b4d593758 by Serhiy Storchaka in branch '2.7':
    Issue bpo-18672: Fixed format specifiers for Py_ssize_t in debugging output in
    http://hg.python.org/cpython/rev/603b4d593758

    @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
    topic-regex type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant