]> git.pld-linux.org Git - packages/glibc.git/commitdiff
- (try to) just ignore damaged zoneinfo file instead of crashing
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 30 Jun 2004 14:12:18 +0000 (14:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  (for testing, not done yet because current glibc crashes on grsec-enabled kernel)

Changed files:
    glibc-tzfile-noassert.patch -> 1.1

glibc-tzfile-noassert.patch [new file with mode: 0644]

diff --git a/glibc-tzfile-noassert.patch b/glibc-tzfile-noassert.patch
new file mode 100644 (file)
index 0000000..71a8a10
--- /dev/null
@@ -0,0 +1,13 @@
+--- libc/time/tzfile.c.orig    2004-03-20 01:37:50.000000000 +0100
++++ libc/time/tzfile.c 2004-06-29 17:40:15.000000000 +0200
+@@ -313,7 +313,9 @@
+     {
+       /* This should only happen if there are no transition rules.
+        In this case there should be only one single type.  */
+-      assert (num_types == 1);
++      if(__builtin_expect((num_types != 1), 0))
++      return;
++      /* assert (num_types == 1);  -- disabled, don't crash */
+       __tzname[0] = __tzstring (zone_names);
+     }
+   if (__tzname[1] == NULL)
This page took 0.111942 seconds and 4 git commands to generate.