From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14276 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Florian Weimer Newsgroups: gmane.linux.lib.musl.general Subject: getdents* bug Date: Thu, 27 Jun 2019 11:54:02 +0200 Message-ID: <874l4bwdz9.fsf@oldenburg2.str.redhat.com> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="5247"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) To: musl@lists.openwall.com Original-X-From: musl-return-14292-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jun 27 11:54:19 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hgR6h-0001HQ-5B for gllmg-musl@m.gmane.org; Thu, 27 Jun 2019 11:54:19 +0200 Original-Received: (qmail 3296 invoked by uid 550); 27 Jun 2019 09:54:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 3275 invoked from network); 27 Jun 2019 09:54:16 -0000 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Thu, 27 Jun 2019 09:54:04 +0000 (UTC) Xref: news.gmane.org gmane.linux.lib.musl.general:14276 Archived-At: The kernel only accepts buffer size values up to INT_MAX. I agree that size_t is the correct type for the buffer size, but it means that userspace needs to clamp large values to INT_MAX. Thanks, Florian