NetBSD Problem Report #46542

From  Mon Jun  4 23:47:21 2012
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 653B063BA27
	for <>; Mon,  4 Jun 2012 23:47:21 +0000 (UTC)
Message-Id: <>
Date: Mon,  4 Jun 2012 23:47:19 +0000 (UTC)
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
	Future Perfect, Inc.
System: NetBSD 5.99.59 NetBSD 5.99.59 (GENERIC) #7: Fri Dec 30 15:19:49 EST 2011 amd64
Architecture: x86_64
Machine: amd64
Date is too slow when referring to years in the future and does not detect
[7:41pm] 10029>date -d '1000050000 years' +%s
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
TIME=1:12.02 CPU=99.9% (72.019u 0.000s) SWAPS=0 (0+104)pf (0i+1o) (0Kc+0Kd)

From: "Jukka Ruohonen" <>
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

 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 \

 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:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.