bits, rather than reading only 32 bits from the supplied address.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14954
dc483132-0cff-0310-8789-
dd5450dbe970
+2002-10-31 Ken Raeburn <raeburn@mit.edu>
+
+ * xdr_alloc.c (xdralloc_putlong): Coerce value pointed to by
+ argument to 32 bits, rather than reading only 32 bits from the
+ supplied address.
+
2002-09-24 Ken Raeburn <raeburn@mit.edu>
* Makefile.in ($(HDRS)): Depend on includes.
register XDR *xdrs;
long *lp;
{
- int l = htonl((rpc_u_int32) *(int *)lp);
-
+ int l = htonl((rpc_u_int32) *lp); /* XXX need bounds checking */
+
+ /* XXX assumes sizeof(int)==4 */
if (DynInsert((DynObject) xdrs->x_private,
DynSize((DynObject) xdrs->x_private), &l,
sizeof(int)) != DYN_OK)