Date: Thu, 19 Feb 2009 17:40:02 GMT From: Stacey Son <sson@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 157942 for review Message-ID: <200902191740.n1JHe2SS094423@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=157942 Change 157942 by sson@sson_amd64 on 2009/02/19 17:39:56 Missing 'sizeof(u_char)' so the AUT_IPC_PERM audit record is one byte too small. Obtained from: todd_heberlein (at) mac com Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#90 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#90 (text+ko) ==== @@ -30,7 +30,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#89 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#90 $ */ #include <sys/types.h> @@ -487,7 +487,8 @@ u_char *dptr = NULL; u_int16_t pad0 = 0; - GET_TOKEN_AREA(t, dptr, 12 * sizeof(u_int16_t) + sizeof(u_int32_t)); + GET_TOKEN_AREA(t, dptr, sizeof(u_char) + 12 * sizeof(u_int16_t) + + sizeof(u_int32_t)); if (t == NULL) return (NULL);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902191740.n1JHe2SS094423>