diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/references.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/references.c b/src/references.c index 6d31142..348de14 100755 --- a/src/references.c +++ b/src/references.c @@ -95,7 +95,7 @@ cmark_reference *cmark_reference_lookup(cmark_reference_map *map, unsigned char *norm; unsigned int hash; - if (label->len > MAX_LINK_LABEL_LENGTH) + if (label->len < 1 || label->len > MAX_LINK_LABEL_LENGTH) return NULL; if (map == NULL) |