Date: Sun, 16 Nov 2003 20:19:15 -0800 (PST) From: Jacques Vidrine <nectar@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdtime strptime.c Message-ID: <200311170419.hAH4JFb5062414@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311170419.hAH4JFb5062414>