fix-bufffer-overflow
authorDebian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Sat, 29 Jul 2017 08:38:27 +0000 (09:38 +0100)
committerSascha Steinbiss <satta@debian.org>
Sat, 29 Jul 2017 08:38:27 +0000 (09:38 +0100)
Gbp-Pq: Name fix-bufffer-overflow.patch

filter.c

index 463028ff451fac72bf79ddc51b2bbc672a6dc6b6..157e0abb9231776e3ec8c18509e92a366ed24ede 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -832,6 +832,7 @@ static void set_strlen(filter_t *flt, bcf1_t *line, token_t *tok)
         {
             char *se = ss;
             while ( *se && *se!=',' ) se++;
+            hts_expand(double, i+1, tok->mvalues, tok->values);
             if ( !*se ) tok->values[i] = strlen(ss);
             else
             {