Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cfmvf-0003Gx-Aw for qemu-devel@nongnu.org; Sat, 18 Dec 2004 17:19:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cfmve-0003Gd-P5 for qemu-devel@nongnu.org; Sat, 18 Dec 2004 17:19:58 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cfmve-0003Ga-Ls for qemu-devel@nongnu.org; Sat, 18 Dec 2004 17:19:58 -0500 Received: from [212.238.201.82] (helo=xi.wantstofly.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cfml5-0005xk-N7 for qemu-devel@nongnu.org; Sat, 18 Dec 2004 17:09:03 -0500 Date: Sat, 18 Dec 2004 23:09:03 +0100 From: Lennert Buytenhek Message-ID: <20041218220903.GB832@xi.wantstofly.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] elf interpreter prefix scanning can get stuck in a loop Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, init_paths() seems to be able to get stuck in an 'infinite' loop. For example when encountering a '.' symlink: open("/data/fc2/arm/root/usr/include/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/beecrypt/asm-generic", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 27 I'd suggest to always skip symlinks but that doesn't seem like the right thing to do.. --L