aboutsummaryrefslogtreecommitdiff
path: root/time/tzfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/tzfile.c')
-rw-r--r--time/tzfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/time/tzfile.c b/time/tzfile.c
index 1bce14c..2a1a953 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);