Skip to content

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

@graingert

Description

@graingert
mannequin
BPO39277
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=Noneclosed_at=Nonecreated_at=<Date2020-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=<Date2022-02-07.15:21:14.076>user='https://github.com/graingert'

    bugs.python.org fields:

    activity=<Date2022-02-07.15:21:14.076>actor='vstinner'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= [] creation=<Date2020-01-09.14:43:45.587>creator='graingert'dependencies= [] files= [] hgrepos= [] issue_num=39277keywords= ['patch'] message_count=8.0messages= ['359682', '359683', '359710', '359728', '364021', '372294', '372335', '412754'] nosy_count=5.0nosy_names= ['tim.peters', 'vstinner', 'benjamin.peterson', 'skrah', 'graingert'] pr_nums= ['17933', '31195'] priority='normal'resolution=Nonestage='patch review'status='open'superseder=Nonetype='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