[launchd-changes] [23651] branches/PR-5978442/launchd/src/liblaunch.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 12 18:41:23 PDT 2008


Revision: 23651
          http://trac.macosforge.org/projects/launchd/changeset/23651
Author:   dsorresso at apple.com
Date:     2008-08-12 18:41:23 -0700 (Tue, 12 Aug 2008)
Log Message:
-----------
Fix for rdar://problem/5978442: calloc(3)ing instead of malloc(3)ing.

Modified Paths:
--------------
    branches/PR-5978442/launchd/src/liblaunch.c

Modified: branches/PR-5978442/launchd/src/liblaunch.c
===================================================================
--- branches/PR-5978442/launchd/src/liblaunch.c	2008-08-07 23:19:55 UTC (rev 23650)
+++ branches/PR-5978442/launchd/src/liblaunch.c	2008-08-13 01:41:23 UTC (rev 23651)
@@ -779,7 +779,7 @@
 
 		/* hack, see the above assert to verify "correctness" */
 		free(lh->sendbuf);
-		lh->sendbuf = malloc(good_enough_size);
+		lh->sendbuf = calloc(1, good_enough_size);
 		free(lh->sendfds);
 		lh->sendfds = malloc(4 * 1024);
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20080812/34591df3/attachment.html 


More information about the launchd-changes mailing list