Thanks to visit codestin.com
Credit goes to github.com

Skip to content

_PyTime_FromDouble() fails to detect an integer overflow when converting a C double to a C int64_t #83458

Closed
@graingert

Description

@graingert
mannequin
BPO 39277
Nosy @tim-one, @vstinner, @benjaminp, @skrah, @graingert
PRs
  • bpo-39277, pytime: Fix overflow check on double to int cast #17933
  • bpo-39277: Fix PY_TIMEOUT_MAX cast in _threadmodule.c #31195
  • 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 2020-01-09.14:43:45.587>
    labels = ['3.8', 'type-bug', '3.7']
    title = '_PyTime_FromDouble() fails to detect an integer overflow when converting a C double to a C int64_t'
    updated_at = <Date 2022-02-07.15:21:14.076>
    user = 'https://github.com/graingert'

    bugs.python.org fields:

    activity = <Date 2022-02-07.15:21:14.076>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2020-01-09.14:43:45.587>
    creator = 'graingert'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39277
    keywords = ['patch']
    message_count = 8.0
    messages = ['359682', '359683', '359710', '359728', '364021', '372294', '372335', '412754']
    nosy_count = 5.0
    nosy_names = ['tim.peters', 'vstinner', 'benjamin.peterson', 'skrah', 'graingert']
    pr_nums = ['17933', '31195']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue39277'
    versions = ['Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.12only security fixestype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions