rpms/bash/devel bash-4.0-key_alloc.patch, NONE, 1.1 bash.spec, 1.185, 1.186

Roman Rakus rrakus at fedoraproject.org
Wed Aug 26 14:52:06 UTC 2009


Author: rrakus

Update of /cvs/extras/rpms/bash/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28002

Modified Files:
	bash.spec 
Added Files:
	bash-4.0-key_alloc.patch 
Log Message:
alloc memory for key in creation of 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/devel/bash.spec,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -p -r1.185 -r1.186
--- bash.spec	29 Jul 2009 08:25:17 -0000	1.185
+++ bash.spec	26 Aug 2009 14:52:06 -0000	1.186
@@ -71,6 +71,9 @@ Patch118: bash-tty-tests.patch
 #Patch120: bash-4.0-no_debug_output.patch
 #Patch121: bash-4.0-shell_pipelines_handling.patch
 
+# 518644, alloc memory for key in associative array creation
+Patch122: bash-4.0-key_alloc.patch
+
 Requires(post): ncurses-libs
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -150,6 +153,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
@@ -313,6 +317,9 @@ fi
 #%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
 
 %changelog
+* Wed Aug 26 2009 Roman Rakus <rrakus at redhat.com> - 4.0.28-2
+- alloc memory for key in creation associative array (#518644)
+
 * Tue Jul 28 2009 Roman Rakus <rrakus at redhat.com> - 4.0.28-1
 - Upstream patch level 28
 




More information about the scm-commits mailing list