aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-03-18 14:04:01 -0700
committerJunio C Hamano <gitster@pobox.com>2014-03-18 14:04:01 -0700
commit8aac6c97e81dee53ae7740663128b0296398d6d1 (patch)
treed6977ae7a154fe5ddb272c5e6475eb9fd4467c05 /cache.h
parenta5aca6e883639ce3a3ad07271032905edc0ac608 (diff)
parent3f419d45ef0dfc33dc301d9ae4737043c091291a (diff)
downloadgit-8aac6c97e81dee53ae7740663128b0296398d6d1.tar.gz
git-8aac6c97e81dee53ae7740663128b0296398d6d1.tar.xz
Merge branch 'jk/commit-dates-parsing-fix' into maint
Codepaths that parse timestamps in commit objects have been tightened. * jk/commit-dates-parsing-fix: show_ident_date: fix tz range check log: do not segfault on gmtime errors log: handle integer overflow in timestamps date: check date overflow against time_t fsck: report integer overflow in author timestamps t4212: test bogus timestamps with git-log
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 5c9cc8684..ebe9a405d 100644
--- a/cache.h
+++ b/cache.h
@@ -961,6 +961,7 @@ void datestamp(char *buf, int bufsize);
unsigned long approxidate_careful(const char *, int *);
unsigned long approxidate_relative(const char *date, const struct timeval *now);
enum date_mode parse_date_format(const char *format);
+int date_overflows(unsigned long date);
#define IDENT_STRICT 1
#define IDENT_NO_DATE 2