Skip to content

Out of bounds indizes in PEP293 callbacks #37869

Closed

Description

@doerwalter
BPO 677429
Nosy @malemburg, @gvanrossum, @doerwalter
Files
  • diff.txt
  • 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/doerwalter'
    closed_at = <Date 2003-01-31.17:29:23.000>
    created_at = <Date 2003-01-30.11:43:06.000>
    labels = []
    title = 'Out of bounds indizes in PEP293 callbacks'
    updated_at = <Date 2003-01-31.17:29:23.000>
    user = 'https://github.com/doerwalter'

    bugs.python.org fields:

    activity = <Date 2003-01-31.17:29:23.000>
    actor = 'doerwalter'
    assignee = 'doerwalter'
    closed = True
    closed_date = None
    closer = None
    components = ['None']
    creation = <Date 2003-01-30.11:43:06.000>
    creator = 'doerwalter'
    dependencies = []
    files = ['4972']
    hgrepos = []
    issue_num = 677429
    keywords = ['patch']
    message_count = 4.0
    messages = ['42592', '42593', '42594', '42595']
    nosy_count = 3.0
    nosy_names = ['lemburg', 'gvanrossum', 'doerwalter']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue677429'
    versions = ['Python 2.3']

    Activity

    1. doerwalter commented on Jan 30, 2003

      @doerwalter
      ContributorAuthor

      This patch changes the treatment of positions returned
      by PEP-293 error handers in the Unicode codecs: Negative
      positions are treated as being relative to the end of
      the input and out of bounds positions result in an
      IndexError. The patch also updates the PEP and includes
      an explanation of this in the documentation for
      codecs.register_error. I don't know if this is the best
      spot for it, or if it should be put somewhere else.

    2. self-assigned this
      on Jan 30, 2003
    3. self-assigned this
      on Jan 30, 2003
    4. gvanrossum commented on Jan 31, 2003

      @gvanrossum
      Member

      Logged In: YES
      user_id=6380

      Since this says "codec" I've assigned it to Marc-Andre. :-)

      Marc-Andre, if you don't have time, feel free to unassign it.

    5. malemburg commented on Jan 31, 2003

      @malemburg
      Member

      Logged In: YES
      user_id=38388

      ... and I thought Unicode was the keyword ;-)

      I fully trust Walter on the error handler callbacks, so I'll
      pass it on to him.

    6. doerwalter commented on Jan 31, 2003

      @doerwalter
      ContributorAuthor

      Logged In: YES
      user_id=89016

      Checked in as:
      Doc/lib/libcodecs.tex 1.17
      Doc/lib/libfuncs.tex 1.128
      Lib/test/test_codeccallbacks.py 1.9
      Modules/_iconv_codec.c 1.7
      Objects/unicodeobject.c 2.180
      nondist/peps/pep-0293.txt 1.7

    7. transferred this issue fromon Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions