Date: Mon, 17 Sep 2007 07:33:27 GMT From: Ighighi <ighighi@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/116413: incorrect getconf(1) handling of unsigned constants gives -1 for ULLONG_MAX Message-ID: <200709170733.l8H7XRmS067276@www.freebsd.org> Resent-Message-ID: <200709170740.l8H7e16Z037010@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 116413 >Category: bin >Synopsis: incorrect getconf(1) handling of unsigned constants gives -1 for ULLONG_MAX >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 17 07:40:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Ighighi >Release: 6.2-STABLE >Organization: >Environment: FreeBSD orion 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Sep 14 09:58:01 VET 2007 root@orion:/usr/obj/usr/src/sys/CUSTOM i386 >Description: The code /usr/src/usr.bin/getconf/limits.gperf doesn't correctly handle unsigned constants. Since it uses an intmax_t for all included variables, any value larger than INTMAX_MAX is printed incorrectly. So, on my machine it prints -1 for ULLONG_MAX when it should print: 18446744073709551615 (defined in <machine/_limits.h> to be 0xffffffffffffffffULL) if the desktop calculator isn't fooling me >How-To-Repeat: getconf ULLONG_MAX >Fix: I could submit a patch if there's a minimal guarantee that I won't lose my time... >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709170733.l8H7XRmS067276>