<rdar://problem/7141006> Buffer overflow in mDNSASLLog
authorrlpm@apple.com <rlpm@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Fri, 30 Oct 2009 19:43:17 +0000 (19:43 +0000)
committerrlpm@apple.com <rlpm@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Fri, 30 Oct 2009 19:43:17 +0000 (19:43 +0000)
git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6764 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

mDNSMacOSX/mDNSMacOSX.c

index 994c9f8..c107481 100644 (file)
@@ -309,7 +309,7 @@ mDNSexport void mDNSASLLog(uuid_t *uuid, const char *subdomain, const char *resu
        if (!asl_msg)   { LogMsg("mDNSASLLog: asl_new failed"); return; }
        if (uuid)
                {
-               char            uuidStr[36];
+               char            uuidStr[37];
                uuid_unparse(*uuid, uuidStr);
                asl_set         (asl_msg, "com.apple.message.uuid", uuidStr);
                }