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.
_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit