[med-svn] [Git][med-team/genometester][upstream] New upstream version 4.0+git20200511.91cecb5+dfsg

Steffen Möller gitlab at salsa.debian.org
Sun May 17 19:12:44 BST 2020



Steffen Möller pushed to branch upstream at Debian Med / genometester


Commits:
cffef4cc by Steffen Moeller at 2020-05-17T20:06:48+02:00
New upstream version 4.0+git20200511.91cecb5+dfsg
- - - - -


1 changed file:

- src/database.c


Changes:

=====================================
src/database.c
=====================================
@@ -380,14 +380,17 @@ read_database_from_binary (KMerDB *db, const unsigned char *cdata, unsigned long
   unsigned int version;
   unsigned int has_index = 0;
 
-  if (memcmp (cdata + cpos, DBKEY, 4)) return 0;
+  if (memcmp (cdata + cpos, DBKEY, 4)) {
+    fprintf (stderr, "read_database_from_binary: Invalid DB key\n");
+    return 0;
+  }
   cpos += 4;
   memcpy (&major, cdata + cpos, 2);
   cpos += 2;
   memcpy (&minor, cdata + cpos, 2);
   cpos += 2;
   version = (major << 16) | minor;
-  if (version < 1) return 0;
+  /* if (version < 1) return 0; */
   if (version >= 3) has_index = 1;
 
   memcpy (&db->wordsize, cdata + cpos, 4);



View it on GitLab: https://salsa.debian.org/med-team/genometester/-/commit/cffef4cc79a249899f541fdab3265611fea320bc

-- 
View it on GitLab: https://salsa.debian.org/med-team/genometester/-/commit/cffef4cc79a249899f541fdab3265611fea320bc
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200517/27f0eac2/attachment-0001.html>


More information about the debian-med-commit mailing list