time: Use struct alloc_buffer in __tzfile_read
authorFlorian Weimer <fweimer@redhat.com>
Sun, 3 Feb 2019 21:13:51 +0000 (22:13 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Sun, 3 Feb 2019 21:14:33 +0000 (22:14 +0100)
commitb8c7238167de4c080b8b0909213bc7b5abef46e3
treecc614cee165961e5c5180e0c15979b0038856207
parent11f382ee780649549428cb25af3a9f1d3465868d
time: Use struct alloc_buffer in __tzfile_read

The computation of tzspec_len is moved in front of the total_size
computation, so that the allocation size computation and the
suballocations are next to each other.  Also add an assert that
tzspec_len is positive when it is actually used later.
ChangeLog
time/tzfile.c