wordnet/wordnet-3.0-CVE-2008-2149.patch
gil 5aaa83641b rebuilt
package created by autospec [release 3.0-1mamba;Sat Jan 22 2011]
2024-01-05 19:28:54 +01:00

13 lines
451 B
Diff

--- 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++;
}