[Pkg-octave-commit] [octave] 01/02: mkoctfile-infinite-loop.patch: fix infinite loop of mkoctfile -M on platforms where char is unsigned.
Sébastien Villemot
sebastien at debian.org
Mon Dec 1 20:45:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastien pushed a commit to branch master
in repository octave.
commit 48b6568e0e4de69089573411d15e70a6c59f7a64
Author: Sébastien Villemot <sebastien at debian.org>
Date: Mon Dec 1 21:25:46 2014 +0100
mkoctfile-infinite-loop.patch: fix infinite loop of mkoctfile -M on platforms where char is unsigned.
Closes: #770192
---
debian/patches/mkoctfile-infinite-loop.patch | 24 ++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 25 insertions(+)
diff --git a/debian/patches/mkoctfile-infinite-loop.patch b/debian/patches/mkoctfile-infinite-loop.patch
new file mode 100644
index 0000000..ec7ee75
--- /dev/null
+++ b/debian/patches/mkoctfile-infinite-loop.patch
@@ -0,0 +1,24 @@
+Description: Fix infinite loop of mkoctfile -M on platforms where char is unsigned
+Author: Edmund Grimley Evans <edmund.grimley.evans at gmail.com>
+Bug: https://savannah.gnu.org/bugs/index.php?43640
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770192
+Reviewed-by: Sébastien Villemot <sebastien at debian.org>
+Last-Update: 2014-12-01
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/mkoctfile.in.cc
++++ b/src/mkoctfile.in.cc
+@@ -70,11 +70,11 @@ get_line (FILE *fp)
+ {
+ static std::vector<char> buf (100);
+ unsigned int idx = 0;
+- char c;
++ int c;
+
+ while (true)
+ {
+- c = static_cast<char> (gnulib::fgetc (fp));
++ c = gnulib::fgetc (fp);
+ if (c == '\n' || c == EOF)
+ break;
+ if (buf.size () <= idx)
diff --git a/debian/patches/series b/debian/patches/series
index 73b2a42..2b33a0e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ hurd_path_max.diff
always-build-octave-jar.patch
hdf5-flags.patch
hdf5-mkoctfile.patch
+mkoctfile-infinite-loop.patch
--
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave.git
More information about the Pkg-octave-commit
mailing list