Date: Fri, 22 Nov 2002 10:23:33 -0800 (PST) From: Brian Feldman <green@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 21377 for review Message-ID: <200211221823.gAMINXT2073831@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=21377 Change 21377 by green@green_laptop_2 on 2002/11/22 10:23:06 Do the right thing for files that are not to be relabeled at all (not crash). Affected files ... .. //depot/projects/trustedbsd/mac/sbin/setfsmac/setfsmac.c#8 edit Differences ... ==== //depot/projects/trustedbsd/mac/sbin/setfsmac/setfsmac.c#8 (text+ko) ==== @@ -454,6 +454,8 @@ /* add length of "x\0"/"y," */ size += strlen(ls->match->mactext) + 1; } + if (size == 0) + return (0); macstr = malloc(size); if (macstr == NULL) err(1, "malloc"); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211221823.gAMINXT2073831>