This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi,Just a note. When you post a patch, it should be a diff against the head of the official glibc sources. This diff is against a very old version of glibc.
It was recently reported that an xdr request with an incorrect length field could cause glibc to allocate huge amounts of memory when parsing the xdr request.
This bug exposed the fact that the xdr_ functions were allocating memory based on the length in the xdr request rather than the maximum size specified by the YP protocol.
This patch fixes various xdr routines to utilize the already defined limits for certain YP requests.
Thanks! Patsy Franklin
2012-09-25 Patsy Franklin <pfrankli@redhat.com> Honza Horak <hhorak@redhat.com>
* nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize. (xdr_mapname): Use YPMAXMAP as maxsize. (xdr_peername): Use YPMAXPEER as maxsize. (xdr_keydat): Use YPAXRECORD as maxsize. (xdr_valdat): Use YPMAXRECORD as maxsize.
Attachment:
patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |