encoded array count.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14681
dc483132-0cff-0310-8789-
dd5450dbe970
+2002-08-02 Tom Yu <tlyu@mit.edu>
+
+ * xdr_array.c (xdr_array): Account for elsize when checking
+ encoded array count.
+
2002-07-17 Ken Raeburn <raeburn@mit.edu>
* dyn.c: New file, combining contents of old util/dyn library,
return (FALSE);
}
c = *sizep;
- if ((c > maxsize) && (xdrs->x_op != XDR_FREE)) {
+ if ((c > maxsize || c > LASTUNSIGNED / elsize)
+ && (xdrs->x_op != XDR_FREE)) {
return (FALSE);
}
nodesize = c * elsize;