diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/time/__tz.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/time/__tz.c b/src/time/__tz.c index 93d59e8d..6d7173cf 100644 --- a/src/time/__tz.c +++ b/src/time/__tz.c @@ -168,6 +168,11 @@ static void do_tzset() } if (!map) s = __gmt; } + if (map && (map_size < 44 || memcmp(map, "TZif", 4))) { + __munmap((void *)map, map_size); + map = 0; + s = __gmt; + } zi = map; if (map) { |