summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-26 18:49:14 +0000
committerMike Frysinger <vapier@gentoo.org>2010-12-26 18:49:14 +0000
commitc172e50e193e40dee18242db288b493822df7f0c (patch)
tree5d573270d592f5844f93d4e99cedfb8fefa86a92 /sys-devel/bc/files
parentold (diff)
downloadhistorical-c172e50e193e40dee18242db288b493822df7f0c.tar.gz
historical-c172e50e193e40dee18242db288b493822df7f0c.tar.bz2
historical-c172e50e193e40dee18242db288b493822df7f0c.zip
Fix uninitialized memory usage #349339 by David Flogeras. Convert to EAPI=2 for fun.
Package-Manager: portage-2.2.0_alpha10/cvs/Linux x86_64
Diffstat (limited to 'sys-devel/bc/files')
-rw-r--r--sys-devel/bc/files/bc-1.06.95-void_uninitialized.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-devel/bc/files/bc-1.06.95-void_uninitialized.patch b/sys-devel/bc/files/bc-1.06.95-void_uninitialized.patch
new file mode 100644
index 000000000000..3304973f89af
--- /dev/null
+++ b/sys-devel/bc/files/bc-1.06.95-void_uninitialized.patch
@@ -0,0 +1,13 @@
+http://www.pixelbeat.org/programming/oss_bug_flow.html
+https://bugs.gentoo.org/349339
+
+--- bc/storage.c
++++ bc/storage.c
+@@ -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;