From owner-freebsd-hackers Mon Dec 10 12:15:53 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from w250.z064001178.sjc-ca.dsl.cnc.net (w250.z064001178.sjc-ca.dsl.cnc.net [64.1.178.250]) by hub.freebsd.org (Postfix) with SMTP id 15E2637B405 for ; Mon, 10 Dec 2001 12:15:50 -0800 (PST) Received: (qmail 940 invoked by uid 1000); 10 Dec 2001 20:16:11 -0000 Date: Mon, 10 Dec 2001 12:15:49 -0801 From: Jos Backus To: hackers@freebsd.org Subject: sscanf(..., "%lld", ...) broken? Message-ID: <20011210201611.GB595@lizzy.bugworks.com> Reply-To: Jos Backus Mail-Followup-To: hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.24i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Is this PR-worthy? I am seeing this in both -stable and -current. The lftp author claims it's our bug, not his. Jos ----- Forwarded message from "Alexander V. Lukyanov" ----- Date: Mon, 10 Dec 2001 11:47:16 +0300 From: "Alexander V. Lukyanov" To: Jos Backus Subject: Re: Bug in lftp 2.4.8? On Sun, Dec 09, 2001 at 10:47:43PM -0801, Jos Backus wrote: > Something strange seems to be happening with the interpretation of the size(?) > field: > > lizzy:/usr/ports/ftp/lftp/work/lftp-2.4.8# lftp koobera.math.uic.edu > lftp koobera.math.uic.edu:~> cd software > cd ok, cwd=/software > lftp koobera.math.uic.edu:/software> ls > -rw-r--r-- 579194430267867860 1996-01-04 16:22 acid.shar.3.gz > > This is on FreeBSD -current. Thought you would want to know. It seems to me that sscanf on FreeBSD does not correctly handle long long type (%lld). There is another similar report, the reporter says that initializing the variable to 0 before sscanf helps. This indicates a bug in the libc library. You can report a bug to FreeBSD team. -- Alexander. ----- End forwarded message ----- -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message