r45604 - in /packages/wordnet/trunk/debian: changelog patches/51_overflows.patch

gladk at users.alioth.debian.org gladk at users.alioth.debian.org
Tue Feb 26 20:02:00 UTC 2013


Author: gladk
Date: Tue Feb 26 20:02:00 2013
New Revision: 45604

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=45604
Log:
Fix index processing error in morphstr() function. (Closes: #700914)

Modified:
    packages/wordnet/trunk/debian/changelog
    packages/wordnet/trunk/debian/patches/51_overflows.patch

Modified: packages/wordnet/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/wordnet/trunk/debian/changelog?rev=45604&op=diff
==============================================================================
--- packages/wordnet/trunk/debian/changelog (original)
+++ packages/wordnet/trunk/debian/changelog Tue Feb 26 20:02:00 2013
@@ -1,3 +1,11 @@
+wordnet (1:3.0-29) unstable; urgency=low
+
+  * Team upload.
+  * Fix index processing error in morphstr() function. 
+    Closes: #700914
+
+ -- Anton Gladky <gladk at debian.org>  Tue, 26 Feb 2013 20:40:25 +0100
+
 wordnet (1:3.0-28) unstable; urgency=low
 
   * debian/dict-wn.post{inst,rm}: verify start script using

Modified: packages/wordnet/trunk/debian/patches/51_overflows.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/wordnet/trunk/debian/patches/51_overflows.patch?rev=45604&op=diff
==============================================================================
--- packages/wordnet/trunk/debian/patches/51_overflows.patch (original)
+++ packages/wordnet/trunk/debian/patches/51_overflows.patch Tue Feb 26 20:02:00 2013
@@ -8,8 +8,10 @@
 set and is moved to 51_overflows_memcpy.patch which
 uses memcpy instead of the formerly used strcpy.
 
---- WordNet-3.0.orig/lib/binsrch.c
-+++ WordNet-3.0/lib/binsrch.c
+Index: wordnet-3.0/lib/binsrch.c
+===================================================================
+--- wordnet-3.0.orig/lib/binsrch.c	2013-02-19 16:03:01.698031603 +0800
++++ wordnet-3.0/lib/binsrch.c	2013-02-19 16:03:01.686031603 +0800
 @@ -28,7 +28,7 @@
      char *linep;
  
@@ -46,9 +48,11 @@
  	    strncpy(key, linep, length);
  	    key[length] = '\0';
  	    if(strcmp(key, searchkey) < 0) {	/* further in file */
---- WordNet-3.0.orig/lib/morph.c
-+++ WordNet-3.0/lib/morph.c
-@@ -51,24 +51,24 @@
+Index: wordnet-3.0/lib/morph.c
+===================================================================
+--- wordnet-3.0.orig/lib/morph.c	2013-02-19 16:03:01.698031603 +0800
++++ wordnet-3.0/lib/morph.c	2013-02-19 16:06:14.850029761 +0800
+@@ -51,21 +51,21 @@
      char *str;
      int strlen;
  } prepositions[NUMPREPS] = {
@@ -84,20 +88,7 @@
 +    { "between", 7 }
  };
  
--static FILE *exc_fps[NUMPARTS + 1];
-+static FILE *exc_fps[NUMPARTS];
- 
- static int do_init();
- static int strend(char *, char *);
-@@ -100,7 +100,7 @@
- {
-     int i;
- 
--    for (i = 1; i <= NUMPARTS; i++) {
-+    for (i = 0; i < NUMPARTS; i++) {
- 	if (exc_fps[i] != NULL) {
- 	    fclose(exc_fps[i]); exc_fps[i] = NULL;
- 	}
+ static FILE *exc_fps[NUMPARTS + 1];
 @@ -144,18 +144,19 @@
      } else
  	sprintf(searchdir, DEFAULTPATH);
@@ -116,10 +107,9 @@
 +    }
  #endif
  
--    for (i = 1; i <= NUMPARTS; i++) {
+     for (i = 1; i <= NUMPARTS; i++) {
 -	sprintf(fname, EXCFILE, searchdir, partnames[i]);
-+    for (i = 0; i < NUMPARTS; i++) {
-+	snprintf(fname, sizeof(fname), EXCFILE, searchdir, partnames[i+1]);
++	snprintf(fname, sizeof(fname), EXCFILE, searchdir, partnames[i]);
  	if ((exc_fps[i] = fopen(fname, "r")) == NULL) {
 -	    sprintf(msgbuf,
 +	    snprintf(msgbuf, sizeof(msgbuf),
@@ -232,8 +222,10 @@
  	    strncpy(end, rest, last - rest + 1);
  	    end[last-rest+1] = '\0';
  	    strcat(end, lastwd);
---- WordNet-3.0.orig/lib/search.c
-+++ WordNet-3.0/lib/search.c
+Index: wordnet-3.0/lib/search.c
+===================================================================
+--- wordnet-3.0.orig/lib/search.c	2013-02-19 16:03:01.698031603 +0800
++++ wordnet-3.0/lib/search.c	2013-02-19 16:03:01.690031603 +0800
 @@ -13,6 +13,7 @@
  #include <stdlib.h>
  #include <string.h>
@@ -595,8 +587,10 @@
      if (fileinfoflag) {
  	sprintf(tbuf + strlen(tbuf),"<%s> ", lexfiles[synptr->fnum]);
  	prlexid = 1;
---- WordNet-3.0.orig/lib/wnutil.c
-+++ WordNet-3.0/lib/wnutil.c
+Index: wordnet-3.0/lib/wnutil.c
+===================================================================
+--- wordnet-3.0.orig/lib/wnutil.c	2013-02-19 16:03:01.698031603 +0800
++++ wordnet-3.0/lib/wnutil.c	2013-02-19 16:03:01.690031603 +0800
 @@ -48,7 +48,7 @@
      char *env;
  
@@ -691,8 +685,10 @@
  "WordNet library warning: Can't open verb example sentence index file(%s)\n",
  		tmpbuf);
  	display_message(msgbuf);
---- WordNet-3.0.orig/src/wn.c
-+++ WordNet-3.0/src/wn.c
+Index: wordnet-3.0/src/wn.c
+===================================================================
+--- wordnet-3.0.orig/src/wn.c	2013-02-19 16:03:01.698031603 +0800
++++ wordnet-3.0/src/wn.c	2013-02-19 16:03:01.690031603 +0800
 @@ -131,7 +131,7 @@
         printsearches(char *, int, unsigned long);
  static int error_message(char *);




More information about the debian-science-commits mailing list