r5101 - glibc-package/trunk/debian/patches/any
Author: aurel32
Date: 2011-12-19 17:38:40 +0000 (Mon, 19 Dec 2011)
New Revision: 5101
Modified:
glibc-package/trunk/debian/patches/any/cvs-tzfile.diff
Log:
Fix bugs in cvs-tzfile.diff
Modified: glibc-package/trunk/debian/patches/any/cvs-tzfile.diff
===================================================================
--- glibc-package/trunk/debian/patches/any/cvs-tzfile.diff 2011-12-19 17:33:56 UTC (rev 5100)
+++ glibc-package/trunk/debian/patches/any/cvs-tzfile.diff 2011-12-19 17:38:40 UTC (rev 5101)
@@ -7,6 +7,14 @@
index 144e20b..402389c 100644
--- a/time/tzfile.c
+++ b/time/tzfile.c
+@@ -26,6 +26,7 @@
+ #include <time.h>
+ #include <unistd.h>
+ #include <sys/stat.h>
++#include <stdint.h>
+
+ #define NOID
+ #include <timezone/tzfile.h>
@@ -234,23 +234,58 @@ __tzfile_read (const char *file, size_t extra, char **extrap)
goto read_again;
}
@@ -64,7 +72,7 @@
+ if (__builtin_expect (tzspec_len < num_isstd, 0))
+ goto lose;
+ tzspec_len -= num_isstd;
-+ if (__builtin_expect (tzspec == 0 || tzspec_len - 1 < num_isgmt, 0))
++ if (__builtin_expect (tzspec_len == 0 || tzspec_len - 1 < num_isgmt, 0))
+ goto lose;
+ tzspec_len -= num_isgmt + 1;
+ if (__builtin_expect (SIZE_MAX - total_size < tzspec_len, 0))
Reply to: