New submission from Joffrey F <f.joff...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue32713>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to