From owner-cvs-src@FreeBSD.ORG Sun Nov 16 20:19:16 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C08916A4CE; Sun, 16 Nov 2003 20:19:16 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11BD843FCB; Sun, 16 Nov 2003 20:19:16 -0800 (PST) (envelope-from nectar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAH4JFXJ062415; Sun, 16 Nov 2003 20:19:15 -0800 (PST) (envelope-from nectar@repoman.freebsd.org) Received: (from nectar@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAH4JFb5062414; Sun, 16 Nov 2003 20:19:15 -0800 (PST) (envelope-from nectar) Message-Id: <200311170419.hAH4JFb5062414@repoman.freebsd.org> From: Jacques Vidrine Date: Sun, 16 Nov 2003 20:19:15 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/stdtime strptime.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2003 04:19:16 -0000 nectar 2003/11/16 20:19:15 PST FreeBSD src repository Modified files: lib/libc/stdtime strptime.c Log: Detect range errors when using the %s specifier. Previously, LONG_MAX was rejected as a range error, while any values less than LONG_MIN were silently substituted with LONG_MIN. Furthermore, on some platforms `time_t' has less range than `long' (e.g. alpha), which may give incorrect results when parsing some strings. Revision Changes Path 1.35 +10 -3 src/lib/libc/stdtime/strptime.c