|
From: <sv...@va...> - 2011-05-09 22:42:17
|
Author: sewardj
Date: 2011-05-09 23:42:06 +0100 (Mon, 09 May 2011)
New Revision: 11737
Log:
VG_(mkstemp): fix infinite loop in the case where /tmp isn't
writable. Fixes #223249. (Florian Krohm, br...@ac...)
Modified:
trunk/coregrind/m_libcfile.c
Modified: trunk/coregrind/m_libcfile.c
===================================================================
--- trunk/coregrind/m_libcfile.c 2011-05-09 21:54:44 UTC (rev 11736)
+++ trunk/coregrind/m_libcfile.c 2011-05-09 22:42:06 UTC (rev 11737)
@@ -641,7 +641,7 @@
tries = 0;
while (True) {
- if (tries > 10)
+ if (tries++ > 10)
return -1;
VG_(sprintf)( buf, "/tmp/valgrind_%s_%08x",
part_of_name, VG_(random)( &seed ));
|