[tz] [PROPOSED PATCH 4/5] Fix some bugs and potential crashes with bad data in zone files.