[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r26134 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r26134 - gnunet/src/util |
Date: |
Fri, 15 Feb 2013 12:21:30 +0100 |
Author: LRN
Date: 2013-02-15 12:21:30 +0100 (Fri, 15 Feb 2013)
New Revision: 26134
Modified:
gnunet/src/util/os_priority.c
Log:
Detect bad control pipes earlier
Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c 2013-02-15 10:51:58 UTC (rev 26133)
+++ gnunet/src/util/os_priority.c 2013-02-15 11:21:30 UTC (rev 26134)
@@ -151,6 +151,13 @@
putenv (GNUNET_OS_CONTROL_PIPE "=");
return;
}
+ if (pipe_fd >= FD_SETSIZE)
+ {
+ LOG (GNUNET_ERROR_TYPE_ERROR,
+ "GNUNET_OS_CONTROL_PIPE `%s' contains garbage?\n", env_buf);
+ putenv (GNUNET_OS_CONTROL_PIPE "=");
+ return;
+ }
/* Gcc will issue a warning here. What to do with it? */
#if WINDOWS
control_pipe = GNUNET_DISK_get_handle_from_w32_handle ((HANDLE) pipe_fd);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r26134 - gnunet/src/util,
gnunet <=