Fix a case where we could go off the end of the buffer.
authormillert <millert@openbsd.org>
Tue, 5 Dec 2017 17:47:09 +0000 (17:47 +0000)
committermillert <millert@openbsd.org>
Tue, 5 Dec 2017 17:47:09 +0000 (17:47 +0000)
commitbea177d65497ea7128318c79a3f032f529e56683
treea558f68c8ad5864f7ad192702e273f6acc5dfaeb
parent2827814c6073c6a91ed56d191be8af58a84cd964
Fix a case where we could go off the end of the buffer.
Crash found by Sergey Bronnikov using afl-fuzz.
Based on a diff from and OK by espie@
usr.bin/make/for.c