[New-bugs-announce] [issue32713] tarfile.itn breaks if n is a negative float

Joffrey F report at bugs.python.org
Mon Jan 29 16:15:56 EST 2018


New submission from Joffrey F <f.joffrey at gmail.com>:

Originally reported @ github.com/docker/compose/issues/5618

It 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_header

This also happens for positive floats > 8**11 - 1, but that one is less of an issue for the next two hundred years or so.

----------
components: Library (Lib)
messages: 311173
nosy: j0ffrey
priority: normal
severity: normal
status: open
title: tarfile.itn breaks if n is a negative float
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32713>
_______________________________________


More information about the New-bugs-announce mailing list