summaryrefslogtreecommitdiff
path: root/src/htscore.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-06-06 15:48:05 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-06-06 15:48:05 +0000
commit344d47e63250b8c629f656ca9ffda031b9796688 (patch)
tree7a78c21fbe09da34acd40009e7c7c97d7361e2fa /src/htscore.c
parentd068a8f3ff1ddd439ffddc1931c92d3059b61990 (diff)
Additional check.
Diffstat (limited to 'src/htscore.c')
-rw-r--r--src/htscore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/htscore.c b/src/htscore.c
index 65cec90..f6b8804 100644
--- a/src/htscore.c
+++ b/src/htscore.c
@@ -222,6 +222,7 @@ static char* hts_record_link_strdup_(httrackp *opt, const char *s) {
char *s_dup;
assertf(liensbuf != NULL);
+ assertf(len < block_capa);
// not enough capacity ? then create a new chunk
if (len + liensbuf->string_buffer_size > liensbuf->string_buffer_capa) {