[New-bugs-announce] [issue23228] Crashes when tarfile contains a symlink and unpack directory contain it too

Michael Vogt report at bugs.python.org
Tue Jan 13 09:55:02 CET 2015


New submission from Michael Vogt:

The tarfile.makelink() code crashes with a maximum recursion error when it unpacks a tarfile that contains a symlink into a directory that already contains this symlink.

Attached is a standalone testcase (that probably better explains whats going on :) and a possible fix.

----------
components: Library (Lib)
files: tarfile-extract-crash.py
messages: 233907
nosy: mvo
priority: normal
severity: normal
status: open
title: Crashes when tarfile contains a symlink and unpack directory contain it too
type: crash
Added file: http://bugs.python.org/file37688/tarfile-extract-crash.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23228>
_______________________________________


More information about the New-bugs-announce mailing list