[Clfs-commits] [Cross-LFS]Cross-LFS Book branch, master, updated. clfs-3.0.0-systemd-131-g09c0ac7

git git at clfs.org
Fri Sep 4 20:07:52 PDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cross-LFS Book".

The branch, master has been updated
       via  09c0ac772ff6aa916fe2d0750faf5d682bba0493 (commit)
      from  fc46d00386fe5b391fe7e35d721c4e776b7628c1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 09c0ac772ff6aa916fe2d0750faf5d682bba0493
Author: William Harrington <kb0iic at berzerkula.org>
Date:   Fri Sep 4 22:05:53 2015 -0500

    Add the Bc memory leak check patch.

diff --git a/BOOK/final-system/common/acl.xml b/BOOK/final-system/common/acl.xml
index 1e8c0be..e4551a1 100644
--- a/BOOK/final-system/common/acl.xml
+++ b/BOOK/final-system/common/acl.xml
@@ -24,6 +24,11 @@
   <sect2 role="installation">
     <title>Installation of ACL</title>
 
+    <para os="s1">Apply a sed for a test:</para>
+
+<screen os="s2"><userinput>sed -i -e "/TABS-1;/a if (x > (TABS-1)) x = (TABS-1);" \
+    libacl/__acl_to_any_text.c</userinput></screen>
+
     <para os="a">Apply a sed to install the documentation with a versioned
     directory:</para>
 
diff --git a/patches/bc-1.06.95-memory_leak-1.patch b/patches/bc-1.06.95-memory_leak-1.patch
new file mode 100644
index 0000000..65703f9
--- /dev/null
+++ b/patches/bc-1.06.95-memory_leak-1.patch
@@ -0,0 +1,41 @@
+Submitted By: Bruce Dubbs (bdubbs at linuxfromscratch dot org)
+Date: 2014-04-18
+Initial Package Version: 1.06.95
+Origin: Gentoo
+Description: Fixes memory leaks and an uninitialized variable
+ 
+diff -Naur bc-1.06.95.orig/bc/bc.y bc-1.06.95/bc/bc.y
+--- bc-1.06.95.orig/bc/bc.y	2006-09-04 21:39:31.000000000 -0500
++++ bc-1.06.95/bc/bc.y	2014-04-09 13:27:04.602661243 -0500
+@@ -569,6 +569,7 @@
+ 				    generate (">");
+ 				  break;
+ 				}
++			        free($2);	
+ 			    }
+ 			| expression '+' expression
+ 			    {
+diff -Naur bc-1.06.95.orig/bc/storage.c bc-1.06.95/bc/storage.c
+--- bc-1.06.95.orig/bc/storage.c	2006-09-04 21:39:31.000000000 -0500
++++ bc-1.06.95/bc/storage.c	2014-04-09 13:28:11.770763410 -0500
+@@ -99,6 +99,7 @@
+     {
+       f = &functions[indx];
+       f->f_defined = FALSE;
++      f->f_void = FALSE;
+       f->f_body = (char *) bc_malloc (BC_START_SIZE);
+       f->f_body_size = BC_START_SIZE;
+       f->f_code_size = 0;
+diff -Naur bc-1.06.95.orig/bc/util.c bc-1.06.95/bc/util.c
+--- bc-1.06.95.orig/bc/util.c	2006-09-04 21:39:31.000000000 -0500
++++ bc-1.06.95/bc/util.c	2014-04-09 13:27:39.841190064 -0500
+@@ -602,8 +602,7 @@
+     case FUNCTDEF:
+       if (id->f_name != 0)
+ 	{
+-	  if (namekind != FUNCT)
+-	    free(name);
++	  free(name);
+ 	  /* Check to see if we are redefining a math lib function. */ 
+ 	  if (use_math && namekind == FUNCTDEF && id->f_name <= 6)
+ 	    id->f_name = next_func++;

-----------------------------------------------------------------------

Summary of changes:
 BOOK/final-system/common/acl.xml       |    5 ++++
 patches/bc-1.06.95-memory_leak-1.patch |   41 ++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+), 0 deletions(-)
 create mode 100644 patches/bc-1.06.95-memory_leak-1.patch


hooks/post-receive
-- 
Cross-LFS Book



More information about the Clfs-commits mailing list