summaryrefslogtreecommitdiff
path: root/office/htmldoc/insecure_sscanf_patch.diff
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2010-05-13 00:39:14 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:39:14 +0200
commit0932f518b5e61e09bfc492bf4ec315ff87220db5 (patch)
tree4c9d15137e981ef8490de3a765ffdaca690335af /office/htmldoc/insecure_sscanf_patch.diff
parent61005da4f994e6e75f03d48f2f0de22fd2c79019 (diff)
downloadslackbuilds-0932f518b5e61e09bfc492bf4ec315ff87220db5.tar.gz
office/htmldoc: Updated for version 1.8.27
Diffstat (limited to 'office/htmldoc/insecure_sscanf_patch.diff')
-rw-r--r--office/htmldoc/insecure_sscanf_patch.diff36
1 files changed, 36 insertions, 0 deletions
diff --git a/office/htmldoc/insecure_sscanf_patch.diff b/office/htmldoc/insecure_sscanf_patch.diff
new file mode 100644
index 0000000000..2047c7f7d2
--- /dev/null
+++ b/office/htmldoc/insecure_sscanf_patch.diff
@@ -0,0 +1,36 @@
+diff -ru htmldoc/htmllib.cxx htmldoc/htmllib.cxx
+--- htmldoc/htmllib.cxx 2006-06-07 19:43:52.000000000 +0200
++++ htmldoc/htmllib.cxx 2009-08-01 19:52:46.301099436 +0200
+@@ -2139,7 +2139,7 @@
+ * assigned charset...
+ */
+
+- if (sscanf(line, "%*s%*s%*s%*s%f%*s%*s%s", &width, glyph) != 2)
++ if (sscanf(line, "%*s%*s%*s%*s%f%*s%*s%63s", &width, glyph) != 2)
+ continue;
+
+ for (ch = 0; ch < 256; ch ++)
+diff -ru htmldoc/ps-pdf.cxx htmldoc/ps-pdf.cxx
+--- htmldoc/ps-pdf.cxx 2006-08-01 18:58:50.000000000 +0200
++++ htmldoc/ps-pdf.cxx 2009-08-01 19:53:14.300610480 +0200
+@@ -12512,7 +12512,7 @@
+ * assigned charset...
+ */
+
+- if (sscanf(line, "%*s%*s%*s%*s%d%*s%*s%s", &width, glyph) != 2)
++ if (sscanf(line, "%*s%*s%*s%*s%d%*s%*s%63s", &width, glyph) != 2)
+ continue;
+
+ for (ch = 0; ch < 256; ch ++)
+diff -ru htmldoc/util.cxx htmldoc/util.cxx
+--- htmldoc/util.cxx 2005-04-24 21:20:32.000000000 +0200
++++ htmldoc/util.cxx 2009-08-01 19:52:14.469652088 +0200
+@@ -484,7 +484,7 @@
+ PageWidth = 595;
+ PageLength = 792;
+ }
+- else if (sscanf(size, "%fx%f%s", &width, &length, units) >= 2)
++ else if (sscanf(size, "%fx%f%254s", &width, &length, units) >= 2)
+ {
+ /*
+ * Custom size...