We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 138657c commit 984ce8bCopy full SHA for 984ce8b
1 file changed
src/references.c
@@ -95,7 +95,7 @@ cmark_reference *cmark_reference_lookup(cmark_reference_map *map,
95
unsigned char *norm;
96
unsigned int hash;
97
98
- if (label->len > MAX_LINK_LABEL_LENGTH)
+ if (label->len < 1 || label->len > MAX_LINK_LABEL_LENGTH)
99
return NULL;
100
101
if (map == NULL)
0 commit comments