Skip to content

Do not assume signed integer overflow behavior #45962

@gpshead

Description

@gpshead
BPO 1621
Nosy @loewis, @jcea, @mdickinson, @pitrou, @vstinner, @avassalotti, @matejcik, @jwilk, @alex, @davidmalcolm, @vadmium, @serhiy-storchaka, @ztane, @zhangyangyu, @sir-sigurd, @miss-islington
PRs
  • bpo-1621: Avoid signed integer overflow in set_table_resize(). #9059
  • [3.7] bpo-1621: Avoid signed integer overflow in set_table_resize(). (GH-9059) #9198
  • [3.6] bpo-1621: Avoid signed integer overflow in set_table_resize(). (GH-9059) #9199
  • bpo-34656: Avoid relying on signed overflow in _pickle memos. #9261
  • bpo-34656: Avoid relying on signed overflow in _pickle memos. #9261
  • Dependencies
  • bpo-13312: test_time fails: strftime('%Y', y) for negative year
  • bpo-27473: bytes_concat seems to check overflow using undefined behaviour
  • bpo-29145: failing overflow checks in replace_*
  • Files
  • config.patch
  • overflow-error.patch
  • overflow-error2.patch
  • overflow-error3.patch: Fix whitespace change and comment.
  • overflow-error4.patch: Fix -fwrapv check, thanks tiran
  • fix-overflows-try1.patch
  • fix-overflows-try2.patch: Better patch
  • fix-overflows-try3.patch
  • fix-overflows-final.patch
  • csv.patch
  • issue1621_hashes_and_sets.patch
  • trapv.patch: Committed & superseded
  • set-overflow.patch: Superseded
  • slice-step.patch: => python/issues-test-cpython#36946; supersedes trapv.patch
  • tuple_and_list.patch
  • thread.patch: => Issue 33632
  • array-size.patch: Superseded
  • tuple_and_list_v2.patch
  • ctypes_v2.patch: Supersedes array-size.patch
  • unicode.patch: Committed
  • tuple_and_list_v3.patch: Committed
  • overflow_fix_in_listextend.patch: Superseded
  • 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 = <Date 2018-10-19.22:55:35.437>
    created_at = <Date 2007-12-14.00:43:47.318>
    labels = ['type-security', '3.7', '3.8']
    title = 'Do not assume signed integer overflow behavior'
    updated_at = <Date 2018-10-19.22:55:35.436>
    user = 'https://github.com/gpshead'

    bugs.python.org fields:

    activity = <Date 2018-10-19.22:55:35.436>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-10-19.22:55:35.437>
    closer = 'vstinner'
    components = []
    creation = <Date 2007-12-14.00:43:47.318>
    creator = 'gregory.p.smith'
    dependencies = ['13312', '27473', '29145']
    files = ['8950', '9205', '9207', '9209', '9210', '9211', '9238', '9239', '9242', '9307', '23237', '43728', '43729', '43785', '43827', '43838', '43839', '43842', '43855', '43856', '43862', '43956']
    hgrepos = []
    issue_num = 1621
    keywords = ['patch']
    message_count = 128.0
    messages = ['58602', '58609', '58610', '58611', '58617', '58620', '58684', '58711', '59611', '59612', '59616', '59619', '59692', '59693', '59694', '59696', '59699', '60078', '60079', '60102', '60103', '60105', '60107', '60109', '60110', '60111', '60114', '60115', '60116', '60118', '60120', '60121', '60124', '60125', '60126', '60146', '60246', '60254', '60260', '61272', '61286', '61291', '61319', '61320', '61757', '61758', '61759', '61760', '61761', '61762', '61763', '61765', '61766', '61767', '61768', '61770', '61774', '61784', '61785', '61788', '61791', '61792', '62616', '87689', '87690', '87693', '87694', '87704', '87707', '87708', '87712', '87730', '87731', '87908', '141871', '144490', '144492', '144499', '144501', '144503', '144505', '144524', '147958', '213729', '270084', '270460', '270461', '270463', '270562', '270580', '270582', '270807', '270809', '270823', '270827', '270869', '270977', '271057', '271058', '271084', '271118', '271136', '271143', '271144', '271150', '271223', '271735', '271759', '271763', '271766', '271768', '271769', '271800', '271803', '272077', '272078', '285466', '303330', '317087', '325091', '325105', '325109', '325113', '325128', '325284', '328068', '328069', '328070']
    nosy_count = 22.0
    nosy_names = ['loewis', 'nnorwitz', 'jcea', 'mark.dickinson', 'pitrou', 'vstinner', 'alexandre.vassalotti', 'donmez', 'matejcik', 'jwilk', 'alex', 'dmalcolm', 'python-dev', 'deadshort', 'martin.panter', 'serhiy.storchaka', 'ztane', 'fweimer', 'Jeffrey.Walton', 'xiang.zhang', 'sir-sigurd', 'miss-islington']
    pr_nums = ['9059', '9198', '9199', '9261', '9261']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'security'
    url = 'https://bugs.python.org/issue1621'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions