From 8b7fb5883bf50ab866f785b9cb36c8167f7a3286 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 16 Nov 1998 12:02:08 +0000 Subject: Update. 1998-11-16 Ulrich Drepper * sysdeps/unix/opendir.c: Use o_directory_works differently. Treat zero value as uninitialized so that variable can go into .bss. * dirent/opendir-tst1.c: Print error strings to stdout. * sysdeps/unix/sysv/linux/mmap64.c: New file. Empty. * sysdeps/unix/sysv/linux/syscalls.list: Add mmap with mmap64 alias. * sysdeps/unix/sysv/linux/arm/mmap.S: Add mmap64 alias. * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise. * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise. 1998-11-16 Andreas Schwab * time/tzfile.c (__tzfile_read): Check that types[i].isdst is in range. 1998-11-16 Ulrich Drepper * libio/bits/stdio.h (fread_unlocked): Do handle zero size and number. (fwrite_unlocked): Likewise. 1998-11-16 Andreas Schwab * libio/bits/stdio.h (fread_unlocked): Don't evaluate non-constant twice. Don't bother handling zero size. (frwite_unlocked): Likewise. 1998-11-15 Andreas Schwab * configure.in: Fix regex for makeinfo version string. 1998-11-15 Andreas Schwab * sunrpc/rpc_sample.c (write_sample_server): Avoid -Wparentheses warning. * sunrpc/rpc_svcout.c (write_program): Likewise. 1998-11-15 Andreas Schwab * time/Makefile (CFLAGS-test_time.c): Add -Wno-format. 1998-11-16 Ulrich Drepper . 1998-11-16 Andreas Schwab --- time/Makefile | 3 +++ time/tzfile.c | 2 ++ 2 files changed, 5 insertions(+) (limited to 'time') diff --git a/time/Makefile b/time/Makefile index 7620d62..80aff61 100644 --- a/time/Makefile +++ b/time/Makefile @@ -40,3 +40,6 @@ tz-cflags = -DTZDIR='"$(zonedir)"' \ CFLAGS-tzfile.c = $(tz-cflags) CFLAGS-tzset.c = $(tz-cflags) + +# Don't warn about Y2k problem in strftime format string. +CFLAGS-test_time.c = -Wno-format 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); -- cgit v1.1