Date: Mon, 10 Dec 2001 12:15:49 -0801 From: Jos Backus <josb@cncdsl.com> To: hackers@freebsd.org Subject: sscanf(..., "%lld", ...) broken? Message-ID: <20011210201611.GB595@lizzy.bugworks.com>
next in thread | raw e-mail | index | archive | help
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" <lav@yars.free.net> ----- Date: Mon, 10 Dec 2001 11:47:16 +0300 From: "Alexander V. Lukyanov" <lav@yars.free.net> To: Jos Backus <josb@cncdsl.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011210201611.GB595>