summaryrefslogtreecommitdiff
path: root/wordnet-3.0-CVE-2008-2149.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-13 11:03:38 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-13 11:03:38 +0000
commit6dc53110f30d6b433f12d60f9e1f3047503c1edf (patch)
tree857a84df3b1864081129dda6117ea28fbfb007db /wordnet-3.0-CVE-2008-2149.patch
parent9922d4926395d75a6d334cad1ba2233febd52aa5 (diff)
automatic import of wordnetopeneuler23.03
Diffstat (limited to 'wordnet-3.0-CVE-2008-2149.patch')
-rw-r--r--wordnet-3.0-CVE-2008-2149.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/wordnet-3.0-CVE-2008-2149.patch b/wordnet-3.0-CVE-2008-2149.patch
new file mode 100644
index 0000000..42660c1
--- /dev/null
+++ b/wordnet-3.0-CVE-2008-2149.patch
@@ -0,0 +1,12 @@
+--- wordnet-3.0.orig/src/wn.c
++++ wordnet-3.0/src/wn.c
+@@ -206,7 +206,8 @@
+ outsenses += do_search(av[1], optptr->pos, optptr->search,
+ whichsense, optptr->label);
+ } else {
+- sprintf(tmpbuf, "wn: invalid search option: %s\n", av[j]);
++ /* Fix CVE-2008-2149: buffer overflows Andreas Tille <tille@debian.org> */
++ sprintf(tmpbuf, "wn: invalid search option: %.200s\n", av[j]);
+ display_message(tmpbuf);
+ errcount++;
+ }