NetBSD Problem Report #46542

From christos@zoulas.com  Mon Jun  4 23:47:21 2012
Return-Path: <christos@zoulas.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 653B063BA27
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  4 Jun 2012 23:47:21 +0000 (UTC)
Message-Id: <20120604234719.2230E97124@rebar.astron.com>
Date: Mon,  4 Jun 2012 23:47:19 +0000 (UTC)
From: christos@zoulas.com
Reply-To: christos@zoulas.com
To: gnats-bugs@gnats.NetBSD.org
Subject: date does not work too welll far in the future.
X-Send-Pr-Version: 3.95

>Number:         46542
>Category:       lib
>Synopsis:       date does not work too welll far in the future.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 04 23:50:00 +0000 2012
>Last-Modified:  Fri Jul 03 04:00:03 +0000 2020
>Originator:     Christos Zoulas
>Release:        NetBSD 5.99.59
>Organization:
	Future Perfect, Inc.
>Environment:
System: NetBSD rebar.astron.com 5.99.59 NetBSD 5.99.59 (GENERIC) #7: Fri Dec 30 15:19:49 EST 2011 christos@rebar.astron.com:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Date is too slow when referring to years in the future and does not detect
overflow.
>How-To-Repeat:
[7:41pm] 10029>date -d '1000050000 years' +%s
31558531186453268
TIME=0:05.73 CPU=100.0% (5.739u 0.000s) SWAPS=0 (0+104)pf (0i+1o) (0Kc+0Kd)
[7:41pm] 10030>date -d '10000500000 years' +%s
3599
TIME=1:12.02 CPU=99.9% (72.019u 0.000s) SWAPS=0 (0+104)pf (0i+1o) (0Kc+0Kd)
>Fix:
	Unk

>Audit-Trail:
From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46542 CVS commit: src
Date: Fri, 3 Jul 2020 03:59:18 +0000

 Module Name:	src
 Committed By:	jruoho
 Date:		Fri Jul  3 03:59:18 UTC 2020

 Modified Files:
 	src/distrib/sets/lists/tests: mi
 	src/etc/mtree: NetBSD.dist.tests
 	src/tests/bin: Makefile
 Added Files:
 	src/tests/bin/date: Makefile t_date.sh

 Log Message:
 Add a check for the overflow noted in PR lib/46542.


 To generate a diff of this commit:
 cvs rdiff -u -r1.870 -r1.871 src/distrib/sets/lists/tests/mi
 cvs rdiff -u -r1.171 -r1.172 src/etc/mtree/NetBSD.dist.tests
 cvs rdiff -u -r1.3 -r1.4 src/tests/bin/Makefile
 cvs rdiff -u -r0 -r1.1 src/tests/bin/date/Makefile \
     src/tests/bin/date/t_date.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.