coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] copy: fix possible infinite loop with SEEK_HOLE


From: Pádraig Brady
Subject: Re: [PATCH] copy: fix possible infinite loop with SEEK_HOLE
Date: Mon, 5 Jan 2026 15:46:16 +0000
User-agent: Mozilla Thunderbird Beta

There is was also an existing though very unlikely infinite loop possibility.
The attached adds more defensive code to the loop in lseek_copy() to ensure
the cached hole offset is only used once, thus ensuring the copy progresses
in this pathological case.

cheers,
Padraig

Attachment: copy-avoid-unlikely-inf-loop.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]