From: ceriel Date: Mon, 3 Aug 1987 18:03:23 +0000 (+0000) Subject: fix in check X-Git-Tag: release-5-5~3956 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3883f47fd0eaa54febc2b24519fb93151bfe608b;p=ack.git fix in check --- diff --git a/util/led/extract.c b/util/led/extract.c index 38aba4be3..9b27ea2db 100644 --- a/util/led/extract.c +++ b/util/led/extract.c @@ -73,7 +73,8 @@ get_names(head) * with "the first name". */ if (name.on_foff) { - if (name.on_foff < 0 || name.on_foff >= charoff) { + if (name.on_foff < charoff || + name.on_foff >= charoff+head->oh_nchar) { fatal("illegal offset in name"); } name.on_foff += charindex - charoff;