Skip to content

Commit

Permalink
Merge branch 'hotfix/1.13.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
kathryn-beal committed Oct 10, 2018
2 parents bb3571d + 6718248 commit 1e1b014
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGES

## 1.13.8

* Use gzputs instead of gzprintf when writing reference contig lines to avoid buffer overflow

## 1.13.7

* Modify means by which zlib version is detected.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CAVEMAN_VERSION=1.13.7
CAVEMAN_VERSION=1.13.8
TEST_REF?=""
#Compiler
CC?=gcc
Expand Down
2 changes: 1 addition & 1 deletion src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ int output_vcf_header(gzFile out, char *tum_bam, char *norm_bam, char *ref_seq_l
//Add reference sequence headers
contigs = output_generate_reference_contig_lines(tum_bam, assembly, species);
check(contigs != NULL,"Error fetching contigs from bam file.");
write = gzprintf(out,"%s",contigs);
write = gzputs(out,contigs);
check(write==sizeof(char)*strlen(contigs),"Error (%d) writing contigs.",write);

//INFO lines
Expand Down

0 comments on commit 1e1b014

Please sign in to comment.