diff options
Diffstat (limited to 'time/tzfile.c')
-rw-r--r-- | time/tzfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/time/tzfile.c b/time/tzfile.c index 1bce14c3f0..2a1a953962 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -230,6 +230,8 @@ __tzfile_read (const char *file) || fread_unlocked (&types[i].isdst, 1, 1, f) != 1 || fread_unlocked (&types[i].idx, 1, 1, f) != 1) goto lose; + if (types[i].isdst > 1) + goto lose; if (types[i].idx >= chars) /* Bogus index in data file. */ goto lose; types[i].offset = (long int) decode (x); |