summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {