Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Feb 2006 00:14:06 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/security/audit audit_bsm.c
Message-ID:  <200602040014.k140E6i2049503@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2006-02-04 00:14:06 UTC

  FreeBSD src repository

  Modified files:
    sys/security/audit   audit_bsm.c 
  Log:
  Cast pointers to (uintptr_t) before down-casting to (int).  This avoids
  an incompatible conversion from a 64-bit pointer to a 32-bit integer on
  64-bit platforms.  We will investigate whether Solaris uses a 64-bit
  token here, or a new record here, in order to avoid truncating user
  pointers that are 64-bit.  However, in the mean time, truncation is fine
  as these are rarely/never used fields in audit records.
  
  Obtained from:  TrustedBSD Project
  
  Revision  Changes    Path
  1.2       +8 -7      src/sys/security/audit/audit_bsm.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602040014.k140E6i2049503>