rpms/bash/F-11 bash-4.0-key_alloc.patch, NONE, 1.1 bash.spec, 1.181, 1.182

Roman Rakus rrakus at fedoraproject.org
Thu Aug 27 10:42:25 UTC 2009


Author: rrakus

Update of /cvs/extras/rpms/bash/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2395

Modified Files:
	bash.spec 
Added Files:
	bash-4.0-key_alloc.patch 
Log Message:
alloc memory for key in creation associative array (#518644)

bash-4.0-key_alloc.patch:
 assoc.c |    1 +
 1 file changed, 1 insertion(+)

--- NEW FILE bash-4.0-key_alloc.patch ---
diff -up bash-4.0/assoc.c.key_alloc bash-4.0/assoc.c
--- bash-4.0/assoc.c.key_alloc	2009-08-26 16:17:50.000000000 +0200
+++ bash-4.0/assoc.c	2009-08-26 16:18:42.000000000 +0200
@@ -77,6 +77,7 @@ assoc_insert (hash, key, value)
   b = hash_search (key, hash, HASH_CREATE);
   if (b == 0)
     return -1;
+  b->key = savestring (key);
   FREE (b->data);
   b->data = value ? savestring (value) : (char *)0;
   return (0);


Index: bash.spec
===================================================================
RCS file: /cvs/extras/rpms/bash/F-11/bash.spec,v
retrieving revision 1.181
retrieving revision 1.182
diff -u -p -r1.181 -r1.182
--- bash.spec	23 Jun 2009 14:04:34 -0000	1.181
+++ bash.spec	27 Aug 2009 10:42:23 -0000	1.182
@@ -3,7 +3,7 @@
 Version: 4.0
 Name: bash
 Summary: The GNU Bourne Again shell
-Release: 7%{?dist}
+Release: 8%{?dist}
 Group: System Environment/Shells
 License: GPLv2+
 Url: http://www.gnu.org/software/bash
@@ -63,6 +63,7 @@ Patch118: bash-tty-tests.patch
 #Patch119: bash-ulimit-m.patch
 #Patch120: bash-4.0-no_debug_output.patch
 #Patch121: bash-4.0-shell_pipelines_handling.patch
+Patch122: bash-4.0-key_alloc.patch
 
 Requires(post): ncurses-libs
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -139,6 +140,7 @@ This package contains documentation file
 #%patch119 -p1 -b .ulimit-m
 #%patch120 -p1 -b .no_debug_output
 #%patch121 -p1 -b .pipelines_handling
+%patch122 -p1 -b .key_alloc
 
 echo %{version} > _distribution
 echo %{release} > _patchlevel
@@ -302,6 +304,9 @@ fi
 #%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
 
 %changelog
+* Thu Aug 27 2009 Roman Rakus <rrakus at redhat.com> - 4.0-8
+- alloc memory for key in creation associative array (#518644)
+
 * Tue Jun 23 2009 Roman Rakus <rrakus at redhat.com> - 4.0-7
 - Official upstream patch level 23
 




More information about the fedora-extras-commits mailing list