From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12519 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: fread() - possible division by zero Date: Wed, 14 Feb 2018 22:23:45 +0100 Message-ID: <20180214212344.GD4418@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1518643346 9910 195.159.176.226 (14 Feb 2018 21:22:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Feb 2018 21:22:26 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) To: musl@lists.openwall.com Original-X-From: musl-return-12536-gllmg-musl=m.gmane.org@lists.openwall.com Wed Feb 14 22:22:22 2018 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.84_2) (envelope-from ) id 1em4Uz-0000og-NI for gllmg-musl@m.gmane.org; Wed, 14 Feb 2018 22:21:53 +0100 Original-Received: (qmail 17621 invoked by uid 550); 14 Feb 2018 21:23:57 -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 17603 invoked from network); 14 Feb 2018 21:23:56 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:12519 Archived-At: * Geraldo Netto [2018-02-14 16:50:44 -0200]: > It seems we may have the same division by zero issue on fread(): > it's good practice to actually test your theory, in this case it's just a fread(d,0,n,f) call. then you could see there is no issue, the code works fine.