PERFORCE change 157942 for review
Stacey Son
sson at FreeBSD.org
Thu Feb 19 09:40:04 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=157942
Change 157942 by sson at 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);
More information about the p4-projects
mailing list