This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Check for overflow in __alloc_dir
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 11 Oct 2012 13:17:41 -0700 (PDT)
- Subject: Re: [PATCH] Check for overflow in __alloc_dir
- References: <5076E2A6.4040406@redhat.com>
If st_blksize might ever be any kind of bogus, then I think it's better
just to cap it to some reasonable maximum (maybe a megabyte or two?).
Thanks,
Roland