os.confstr() does not handle value changing length between calls

Offen
#53,856 11 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python

Rechercherichtung

Start at the os.confstr() implementation and review the linked confstr-realloc-endless and confstr-realloc-limited patches for Python 2.7, 3.4, and 3.5. Reproduce the case where the value changes length between calls and verify that the completed behavior handles it without endless resizing.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

extension-modules type-bug
BPO 9647
Nosy @vstinner, @serhiy-storchaka
Files
  • confstr-realloc-endless-2.7.diff
  • confstr-realloc-endless-3.4.diff
  • confstr-realloc-endless-3.5.diff
  • confstr-realloc-limited-2.7.diff
  • confstr-realloc-limited-3.4.diff
  • confstr-realloc-limited-3.5.diff
  • 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 = None
    created_at = <Date 2010-08-19.18:44:52.032>
    labels = ['extension-modules', 'type-bug']
    title = 'os.confstr() does not handle value changing length between calls'
    updated_at = <Date 2019-07-29.11:43:10.037>
    user = 'https://bugs.python.org/baikie'
    

    bugs.python.org fields:

    activity = <Date 2019-07-29.11:43:10.037>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Extension Modules']
    creation = <Date 2010-08-19.18:44:52.032>
    creator = 'baikie'
    dependencies = []
    files = ['37428', '37429', '37430', '37431', '37432', '37433']
    hgrepos = []
    issue_num = 9647
    keywords = ['patch']
    message_count = 11.0
    messages = ['114396', '117633', '117898', '231997', '232216', '232217', '232220', '232280', '232283', '232572', '348627']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'baikie', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue9647'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']
    

    Vorherrschende Sprache
    Python
    Sterne
    77.2k
    Forks
    36k
    Ø Merge
    1 T. 9 Std.
    Gemergte PRs (30 T.)
    558

    Beitragsleitfaden

    Beitragsleitfaden öffnen

    Erste Schritte

    1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
    2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
    3. Forken Sie das Repository und arbeiten Sie in einem Branch.
    4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

    Mehr aus python/cpython

    Alle Issues in python/cpython

    Ähnliche Issues

    Weitere Issues zu Python

    Neue Issues direkt in Ihr Postfach

    Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.