diff options
author | Robert Sohn <grepper@gmail.com> | 2015-06-12 08:44:34 -0400 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2015-06-13 10:02:36 +0200 |
commit | 1faa7c344e10986a4afd1d17bf6d4265b3c821fc (patch) | |
tree | af8c5c8a3760a23d3f0f381c91e9a32acd96383b /package/bc/01_array_initialize.patch | |
parent | 23413b51b2308225584b65c2fcd800ca8f7c56af (diff) | |
download | buildroot-1faa7c344e10986a4afd1d17bf6d4265b3c821fc.tar.gz buildroot-1faa7c344e10986a4afd1d17bf6d4265b3c821fc.zip |
bc: bump version to 1.06.95
The current version of bc being used (1.06) is from 2000 and contains a
serious bug causing it to segfault when the math library is used, so bump to
the latest alpha release, which is also 9 years old.
Also include two fixes for Debian (https://packages.debian.org/jessie/bc)
- A patch to fix array initialization by Phul Nelson
- A patch to get bc to notice I/O errors by Ian Jackson
[Peter: fixup white space and tweak commit message]
Signed-off-by: Robert Sohn <grepper@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/bc/01_array_initialize.patch')
-rw-r--r-- | package/bc/01_array_initialize.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/bc/01_array_initialize.patch b/package/bc/01_array_initialize.patch new file mode 100644 index 0000000000..9520d824af --- /dev/null +++ b/package/bc/01_array_initialize.patch @@ -0,0 +1,20 @@ +Description: Fix array initialization bug +Author: Phil Nelson +Origin: upstream +Bug-Debian: http://bugs.debian.org/586969 +Bug-Debian: http://bugs.debian.org/671513 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: bc/bc/storage.c +=================================================================== +--- bc.orig/bc/storage.c 2013-06-02 20:34:09.401273864 -0400 ++++ bc/bc/storage.c 2013-06-02 20:34:11.000000000 -0400 +@@ -179,7 +179,7 @@ + + + /* Initialize the new elements. */ +- for (; indx < v_count; indx++) ++ for (; indx < a_count; indx++) + arrays[indx] = NULL; + + /* Free the old elements. */ |