Revision: 23336 http://trac.macosforge.org/projects/launchd/changeset/23336 Author: zarzycki@apple.com Date: 2007-08-14 11:07:16 -0700 (Tue, 14 Aug 2007) Log Message: ----------- Safety. Modified Paths: -------------- trunk/launchd/src/launchd_core_logic.c Modified: trunk/launchd/src/launchd_core_logic.c =================================================================== --- trunk/launchd/src/launchd_core_logic.c 2007-08-14 17:53:13 UTC (rev 23335) +++ trunk/launchd/src/launchd_core_logic.c 2007-08-14 18:07:16 UTC (rev 23336) @@ -5157,6 +5157,10 @@ struct ldcred ldc; pid_t pid_to_log; + if (!launchd_assumes(j != NULL)) { + return BOOTSTRAP_NO_MEMORY; + } + if (getpid() != 1) { return BOOTSTRAP_NOT_PRIVILEGED; }
participants (1)
-
source_changes@macosforge.org