Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue32713

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:tarfile.itn breaks if n is a negative float
Type:behaviorStage:resolved
Components:Library (Lib)Versions:Python 3.6, Python 3.4, Python 3.5
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: j0ffrey, lars.gustaebel, miss-islington
Priority:normalKeywords:patch

Created on2018-01-29 21:15 byj0ffrey, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 5434mergedj0ffrey,2018-01-29 22:00
PR 5917mergedmiss-islington,2018-02-27 00:03
PR 5918mergedmiss-islington,2018-02-27 00:05
Messages (2)
msg311173 -(view)Author: Joffrey F (j0ffrey)*Date: 2018-01-29 21:15
Originally reported @ github.com/docker/compose/issues/5618It seems that tarfile.itn() attempts to execute bitwise operations on a float if the n argument is a negative float, raising a TypeError.As pointed out in the original report, this is an issue when converting some mtime values in TarInfo._create_headerThis also happens for positive floats > 8**11 - 1, but that one is less of an issue for the next two hundred years or so.
msg312974 -(view)Author: miss-islington (miss-islington)Date: 2018-02-27 00:50
New changeseta9a8a9814a52b3c92b3680f0b3a356116510ee18 by Miss Islington (bot) in branch '3.7':bpo-32713: Fix tarfile.itn for large/negative float values. (GH-5434)https://github.com/python/cpython/commit/a9a8a9814a52b3c92b3680f0b3a356116510ee18
History
DateUserActionArgs
2022-04-11 14:58:57adminsetgithub: 76894
2018-04-01 08:00:45serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-02-27 00:50:18miss-islingtonsetnosy: +miss-islington
messages: +msg312974
2018-02-27 00:05:33miss-islingtonsetpull_requests: +pull_request5689
2018-02-27 00:03:33miss-islingtonsetpull_requests: +pull_request5688
2018-01-29 22:00:08j0ffreysetkeywords: +patch
stage: patch review
pull_requests: +pull_request5267
2018-01-29 21:16:45ned.deilysetnosy: +lars.gustaebel
2018-01-29 21:15:56j0ffreycreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp