diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-09 13:37:13 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-09 13:37:13 -0800 |
commit | f1bbd869102e185b4e9178948f80c1ac66a94df7 (patch) | |
tree | 5d2f7ad813a1f6e78c5403a80d3300e266b69648 /src/references.c | |
parent | 58ebff02fd350f1b73d62caf0c1e976b4576e2ab (diff) | |
parent | 014d2d0699d8875e766afcf01580c4a2ea093131 (diff) |
Merge branch 'master' of github.com:jgm/CommonMark
Diffstat (limited to 'src/references.c')
-rw-r--r-- | src/references.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/references.c b/src/references.c index 5ba4b24..def4dd8 100644 --- a/src/references.c +++ b/src/references.c @@ -100,6 +100,9 @@ reference* reference_lookup(reference_map *map, chunk *label) unsigned char *norm; unsigned int hash; + if (label->len > MAX_LINK_LABEL_LENGTH) + return NULL; + if (map == NULL) return NULL; |