[BZ#18333]
* time/tzset.c (__tzfile_read): Check tzspec_len == 0.
+2015-04-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ [BZ#18333]
+ * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
+
2015-04-27 Florian Weimer <fweimer@redhat.com>
[BZ#18333]
if (__glibc_unlikely (tzspec_len == 0 || tzspec_len - 1 < num_isgmt))
goto lose;
tzspec_len -= num_isgmt + 1;
- if (__glibc_unlikely (SIZE_MAX - total_size < tzspec_len))
+ if (__glibc_unlikely (tzspec_len == 0
+ || SIZE_MAX - total_size < tzspec_len))
goto lose;
}
if (__glibc_unlikely (SIZE_MAX - total_size - tzspec_len < extra))