diff --git a/src/md4c.c b/src/md4c.c index c9014f7b..3b1cca2d 100644 --- a/src/md4c.c +++ b/src/md4c.c @@ -6141,7 +6141,7 @@ md_analyze_line(MD_CTX* ctx, OFF beg, OFF* p_end, task_container->is_task = TRUE; task_container->task_mark_off = tmp + 1; off = tmp + 3; - while(ISWHITESPACE(off)) + while(off < ctx->size && ISWHITESPACE(off)) off++; line->beg = off; }