Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libutil fix incorrect overflow check from Nicholas Joly



details:   https://anonhg.NetBSD.org/src/rev/85f866daeed8
branches:  trunk
changeset: 759947:85f866daeed8
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 21 18:13:02 2010 +0000

description:
fix incorrect overflow check from Nicholas Joly

diffstat:

 lib/libutil/parsedate.y |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 32595c7b625c -r 85f866daeed8 lib/libutil/parsedate.y
--- a/lib/libutil/parsedate.y   Tue Dec 21 18:05:43 2010 +0000
+++ b/lib/libutil/parsedate.y   Tue Dec 21 18:13:02 2010 +0000
@@ -673,7 +673,7 @@
     oJulian = Julian;
 
     Julian += yyTimezone * 60L;
-    if (oJulian > Julian)
+    if (oJulian > Julian && yyTimezone > 0)
        return -1;
     oJulian = Julian;
 



Home | Main Index | Thread Index | Old Index