SOURCES: glibc-tzfile-noassert.patch - fixed insignificant memory ...

qboosh qboosh at pld-linux.org
Fri Nov 2 20:32:21 CET 2007


Author: qboosh                       Date: Fri Nov  2 19:32:21 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixed insignificant memory leak on corrupted tz file

---- Files affected:
SOURCES:
   glibc-tzfile-noassert.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/glibc-tzfile-noassert.patch
diff -u SOURCES/glibc-tzfile-noassert.patch:1.1 SOURCES/glibc-tzfile-noassert.patch:1.2
--- SOURCES/glibc-tzfile-noassert.patch:1.1	Wed Jun 30 16:12:18 2004
+++ SOURCES/glibc-tzfile-noassert.patch	Fri Nov  2 20:32:15 2007
@@ -6,7 +6,7 @@
  	 In this case there should be only one single type.  */
 -      assert (num_types == 1);
 +      if(__builtin_expect((num_types != 1), 0))
-+	return;
++	goto ret_free_transitions;
 +      /* assert (num_types == 1);  -- disabled, don't crash */
        __tzname[0] = __tzstring (zone_names);
      }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/glibc-tzfile-noassert.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list