diff options
-rw-r--r-- | mdoc_hash.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mdoc_hash.c b/mdoc_hash.c index d87f055b..dea68f28 100644 --- a/mdoc_hash.c +++ b/mdoc_hash.c @@ -127,6 +127,9 @@ mdoc_hash_find(const void *arg, const char *tmp) ind = INDEX(major, minor); + if (ind < 0 || ind >= 26 * 3 * 52) + return(MDOC_MAX); + if (htab[ind]) { slot = htab[ind] - /* LINTED */ (void *)mdoc_macros; |