[reportlab-users] setup.py findFile() logic fragile to symlink loops

Robin Becker robin at reportlab.com
Mon Mar 28 06:26:09 EDT 2022


Hi Michael,

can you try the attached patch. I tested locally with an artificially bad setup with plenty of loops. It failed 
initially, but worked with the new code on linux/windows10.

It fixes both findFile and listFiles.

I am isolating with a positive lateral flow today so there might be some obvious flaw.

On 28/03/2022 09:40, Michał Górny wrote:
> Hi,
> 
> I've just gotten a report from a Gentoo user that reportlab's setup.py
> hangs on build command.  After short debugging, we've discovered that
> the findFile() function used to look for freetype2 headers is fragile to
> symlink loops.
> 
........


-- 
Robin Becker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-symlink-loop.patch
Type: text/x-patch
Size: 1648 bytes
Desc: not available
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20220328/50f7b75e/attachment.bin>


More information about the reportlab-users mailing list