[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r2737 - in glibc-package/trunk/debian: . patches/any



Author: aurel32
Date: 2007-12-08 11:35:19 +0000 (Sat, 08 Dec 2007)
New Revision: 2737

Added:
   glibc-package/trunk/debian/patches/any/cvs-vfscanf.diff
Modified:
   glibc-package/trunk/debian/changelog
Log:
  * patches/any/cvs-vfscanf.diff: new patch from upstream to fix
    crash when %as is used with sscanf().  Closes: bug#453408.



Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2007-12-08 11:32:57 UTC (rev 2736)
+++ glibc-package/trunk/debian/changelog	2007-12-08 11:35:19 UTC (rev 2737)
@@ -5,6 +5,8 @@
     patches/any/cvs-sched_h.diff.
   * patches/any/cvs-ether_line.diff: new patch from upstream to fix
     ether_line().  Closes: bug#453899.
+  * patches/any/cvs-vfscanf.diff: new patch from upstream to fix
+    crash when %as is used with sscanf().  Closes: bug#453408.
 
  -- Aurelien Jarno <aurel32@debian.org>  Sat, 08 Dec 2007 12:32:40 +0100
 

Added: glibc-package/trunk/debian/patches/any/cvs-vfscanf.diff
===================================================================
--- glibc-package/trunk/debian/patches/any/cvs-vfscanf.diff	                        (rev 0)
+++ glibc-package/trunk/debian/patches/any/cvs-vfscanf.diff	2007-12-08 11:35:19 UTC (rev 2737)
@@ -0,0 +1,22 @@
+2007-12-07  Ulrich Drepper  <drepper@redhat.com>
+
+	[BZ #5441]
+	* stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
+	structure, it's allocated with alloca.
+
+Index: stdio-common/vfscanf.c
+===================================================================
+RCS file: /cvs/glibc/libc/stdio-common/vfscanf.c,v
+retrieving revision 1.127
+retrieving revision 1.128
+diff -u -d -p -r1.127 -r1.128
+--- stdio-common/vfscanf.c	28 Oct 2007 08:40:36 -0000	1.127
++++ stdio-common/vfscanf.c	7 Dec 2007 16:40:58 -0000	1.128
+@@ -2845,7 +2845,6 @@ _IO_vfscanf_internal (_IO_FILE *s, const
+ 		  *p->ptrs[cnt] = NULL;
+ 		}
+ 	      p = p->next;
+-	      free (ptrs_to_free);
+ 	      ptrs_to_free = p;
+ 	    }
+ 	}



Reply to: